Method CreateSceneFromMeshes
CreateSceneFromMeshes(MeshList, Matrix4List, bool)
Create a scene tree with a list of meshes, all meshes becomes part occurrences with the same root. The same mesh Id can be used several times to handle create instances (prototypes)
Declaration
public uint CreateSceneFromMeshes(MeshList meshes, Matrix4List matrices, bool centerPartPivots = true)
Parameters
Type | Name | Description |
---|---|---|
MeshList | meshes | List of input meshes |
Matrix4List | matrices | List of matrices of input meshes (if empty Identity will be used) |
bool | centerPartPivots | If True, the input meshes will be centered in their local coordinate system and the translation will be set as part matrix. If you want to rollback the meshes to their initial pivots use 'resetPartTransform' function |
Returns
Type | Description |
---|---|
uint |