Return to index

NAME

o - begin or end object context

SYNOPSIS

o [ name ]

DESCRIPTION

If name is given, we push a new object context onto the stack, which is to say that we begin a new subobject by this name. If the o keyword is given by itself, then we pop the last object context off the stack, which means that we leave the current subobject.

All geometry between the start of an object context and its matching end statement is associated with the given name. This may be used in modeling software to help identify objects and subobjects, or it may be ignored altogether.

Object begin and end statements should be balanced in a file, and care should be taken not to overlap transform (xf) contexts with object contexts, especially when arrays are involved. This is because the standard parser will assign object contexts to instanced geometry, which can get confused with other object contexts if a clear enclosure is not maintained.

EXAMPLE

o body
	o torso
		i torso.mgf
	o
	o arm
		o left
			i leftarm.mgf
		o
		o right
			i leftarm.mgf -mx
		o
	o
o

SEE ALSO

xf