This object contains a 4D mesh definition, including vertices, faces, facets, together with objects which define how the mesh is generated.
mesh = MushMesh.new('mymesh')
mesh.mAddBase(MushBasePrism.new( ... ))
mesh.mAddBaseDisplacement(MushDisplacement.new( ... ))
mesh.mAddExtruder(MushExtruder.new( ... ))
mesh.mAddExtruder(MushExtruder.new( ... ))
mesh.mAddMaterial('material1')
mesh.mMakeThis object contains a 4D mesh definition, including vertices, faces, facets, together with objects which define how the mesh is generated. | |
Creates a new, empty mesh object. | |
Creates the mesh, based on the base and extruders, etc. | |
Adds a MushBase object to the mesh. | |
Adds a MushDisplacement object to the mesh. | |
Adds a MushExtruder object to the mesh. | |
Adds a MushMaterial reference to the mesh. | |
Sets the billboard flag for the mesh. | |
Adds a MushBase object to the mesh. This is used as the base object. Typically the base object is simple and its faces are extruded to produce a more complex mesh.
| object | Subclass of MushBase |
Adds a MushDisplacement object to the mesh. This is applied to the base object to position and scale it.
| object | MushDisplacement |
Adds a MushExtruder object to the mesh. Extrusions will be applied in the order in which they are added.
| object | MushExtruder |
Adds a MushMaterial reference to the mesh. Materials define the material (textures, lighting, etc) to be used when the mesh is rendered.
| name | Name of the material to be added, previously created using MushMaterial.cDefine |