Mesh |
public sealed class MeshObjectNode : ObjectNode, IShadowCastingNode, IShadowReceivingNode, IRayHitTestedObject, IMeshNode
The MeshObjectNode type exposes the following members.
Name | Description | |
---|---|---|
MeshObjectNode(MeshBase) | Initializes a new instance of the MeshObjectNode class. | |
MeshObjectNode(MeshBase, String) | Initializes a new instance of the MeshObjectNode class. | |
MeshObjectNode(MeshBase, Material, String) | Initializes a new instance of the MeshObjectNode class. | |
MeshObjectNode(MeshBase, Material, String) | Initializes a new instance of the MeshObjectNode class. |
Name | Description | |
---|---|---|
IsCastingShadow | Gets or sets a Boolean that specifies if this SceneNode is casing shadow. This means that if IsCastingShadow is true, then 3D objects rendered with this SceneNode will create shadow; if false shadow will not be created. True by default. | |
IsReceivingShadow | Gets or sets a Boolean that specifies if this SceneNode can receive shadow - this means that the shadow is rendered on the object(s) rendered by this SceneNode. NOTE: For the shadow to be visible, the effect that is used to render this mesh needs to support rendering shadows. True by default. | |
Materials | Gets or sets an array of Material that can be set to override the materials defined in the Mesh. | |
Mesh | Gets a Mesh that defines the 3D object geometry. |
Name | Description | |
---|---|---|
CollectRenderableObjects |
The task of the CollectRenderableObjects method is to create objects derived from RenderablePrimitiveBase
and add them to the appropriate RenderingQueue.
This method is called at the beginning of RenderScene method call
but only when the scene was significantly changed (number of SceneNodes is changed, material is significantly changed, etc.)
(Overrides ObjectNodeCollectRenderableObjects) | |
GetClosestHitResult | GetClosestHitResult method returns a DXRayHitTestResult with the closest triangle hit by the specified ray. When no triangle is hit, null is returned. | |
GetDetailsText |
Returns a string with detailed description of this SceneNode.
(Overrides ObjectNodeGetDetailsText(Boolean, Boolean, Boolean, Boolean, Boolean)) | |
GetMesh | Returns the mesh that is used by this SceneNode. | |
GetNextHitResult | GetNextHitResult method continues hit testing from the previously returned hit test and returns a DXRayHitTestResult with the next hit triangle (not necessary the next closest triangle) or null if no other triangle is hit. This method can be used to get all hit results. | |
Update |
Update method is called on each update phase (before render phase)
(Overrides SceneNodeUpdate) | |
UpdateBounds |
Updates the bounds of this SceneNode if the dirty flags indicates that the bounds could be changed of if the forceUpdate parameter is set to true
(Overrides SceneNodeUpdateBounds(Boolean)) | |
UpdateMaterial | UpdateMaterial method needs to be called after a material is changed. | |
UpdateMesh | UpdateMesh method needs to be called when the Mesh has been recreated or when SubMeshes data has changed (StartIndexLocation, IndexCount and MaterialIndex do not require regeneration of RenderingQueues). This method updates the RenderableMeshPrimitive that was added to the RenderingQueue. |
Name | Description | |
---|---|---|
IsBackFaceMaterial | IsBackFaceMaterial specifies if the material is used to render front (IsBackFaceMaterial == false) or back (IsBackFaceMaterial == true) faces. | |
SetOriginalObjectInRenderableMeshPrimitiveToSceneNode | SetOriginalObjectInRenderableMeshPrimitiveToSceneNode is a static Boolean that specifies if the OriginalObject property of the RenderableMeshPrimitive objects that are created by this MeshObjectNode are set to the MeshObjectNode (when true; dy default) or to the Mesh object (when false; as in version 5.0 and before). This allows getting the SceneNode with hit testing. |
Name | Description | |
---|---|---|
GetGeometryModel3D |
Returns a WPF's GeometryModel3D that was used to create the specified sceneNode.
If the sceneNode does not define a GeometryModel3D object, then null is returned.
(Defined by Extensions) | |
GetModel3D |
Returns a WPF's Model3D that was used to create the specified sceneNode.
If the sceneNode does not define a Model3D object, then null is returned.
(Defined by Extensions) | |
GetModelVisual3D |
Returns a WPF's ModelVisual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true).
If a SceneNode that defines a ModelVisual3D is not found, then null is returned.
(Defined by Extensions) | |
GetVisual3D |
Returns a WPF's Visual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true).
If a SceneNode that defines a Visual3D is not found, then null is returned.
(Defined by Extensions) |