SceneBuilder.AddRigidMesh
Contents
[
Hide
]AddRigidMesh(IMeshBuilder<MaterialBuilder>, NodeBuilder)
Adds a mesh instance to the scene, attached to an animatable NodeBuilder
public InstanceBuilder AddRigidMesh(IMeshBuilder<MaterialBuilder> mesh, NodeBuilder node)
Parameter | Type | Description |
---|---|---|
mesh | IMeshBuilder`1 | The mesh to add. |
node | NodeBuilder | The node to which the mesh will be attached. |
Return Value
The instance representing this mesh-node pair.
See Also
- class InstanceBuilder
- interface IMeshBuilder<TMaterial>
- class MaterialBuilder
- class NodeBuilder
- class SceneBuilder
- namespace Aspose.CAD.FileFormats.GLB.Scenes
- assembly Aspose.CAD
AddRigidMesh(IMeshBuilder<MaterialBuilder>, AffineTransform)
Adds a mesh instance to the scene, at the given location.
public InstanceBuilder AddRigidMesh(IMeshBuilder<MaterialBuilder> mesh,
AffineTransform meshWorldTransform)
Parameter | Type | Description |
---|---|---|
mesh | IMeshBuilder`1 | The mesh to add. |
meshWorldTransform | AffineTransform | The location of the mesh. |
Return Value
The instance representing this mesh.
Remarks
Mesh instances with a fixed transform cannot be animated, If you need morph animations, use AddRigidMesh
instead.
See Also
- class InstanceBuilder
- interface IMeshBuilder<TMaterial>
- class MaterialBuilder
- struct AffineTransform
- class SceneBuilder
- namespace Aspose.CAD.FileFormats.GLB.Scenes
- assembly Aspose.CAD
AddRigidMesh(IMeshBuilder<MaterialBuilder>, NodeBuilder, AffineTransform)
Adds a mesh instance to the scene, at the given location, relative to the given node.
public InstanceBuilder AddRigidMesh(IMeshBuilder<MaterialBuilder> mesh, NodeBuilder node,
AffineTransform instanceTransform)
Parameter | Type | Description |
---|---|---|
mesh | IMeshBuilder`1 | The mesh to add. |
node | NodeBuilder | The parent node. |
instanceTransform | AffineTransform | The location of the mesh. |
Return Value
The instance representing this mesh.
Remarks
Mesh instances with a fixed transform cannot be animated, If you need morph animations, use AddRigidMesh
instead.
See Also
- class InstanceBuilder
- interface IMeshBuilder<TMaterial>
- class MaterialBuilder
- class NodeBuilder
- struct AffineTransform
- class SceneBuilder
- namespace Aspose.CAD.FileFormats.GLB.Scenes
- assembly Aspose.CAD