c3d.geometry
The geometry module is used for getting default basic shapes. Manipulating geometries and meshes. and loading models.
cube_simple([scale_modifier]) | returns the mesh for a simple side UV mapped cube, in the form of a generic_shape,generic_shape object |
---|---|
cube_skinned([scale_modifier]) | returns the mesh for a UV mapped cube which can have sides textured individualy, in the form of a generic_shape,generic_shape |
load_model(path) | loads the model from the given model file path and returns a generic_shape,generic_shape object |
- cube_simple([scale_modifier])Source
returns the mesh for a simple side UV mapped cube, in the form of a generic_shape,generic_shape object
Parameters
- scale_modifier? number the scale multiplier of the meshes size
Returns
- generic_shape
- cube_skinned([scale_modifier])Source
returns the mesh for a UV mapped cube which can have sides textured individualy, in the form of a generic_shape,generic_shape object
Parameters
- scale_modifier? number the scale multiplier of the meshes size
Returns
- generic_shape
- load_model(path)Source
loads the model from the given model file path and returns a generic_shape,generic_shape object
Parameters
- path string the path to the model file including the file extension ("example.obj")
Returns
- generic_shape