oursin.primitives
Primitive meshes
Functions
Creates primitive mesh |
|
Deletes meshes |
|
Set the color of mesh renderer |
|
Set the position of mesh renderer |
|
Set the scale of mesh renderer |
- create(mesh_names)[source]
Creates primitive mesh
Parameters
- mesh_nameslist of strings
IDs of meshes being created
>>> urn.create(['cube1','cube2'])
- delete(mesh_names)[source]
Deletes meshes
Parameters
- mesh_nameslist of strings
IDs of meshes being deleted
>>> urn.delete(['cube1'])
- set_position(mesh_pos)[source]
Set the position of mesh renderer
Parameters
- mesh_posdict {stringlist of three floats}
dictionary of IDs and vertex positions of the mesh
>>> urn.set_position({'cube1': [1, 2, 3]})