Torus | |
public class TorusKnotModelNode : ModelNode
The TorusKnotModelNode type exposes the following members.
| Name | Description | |
|---|---|---|
| TorusKnotModelNode | Constructor | |
| TorusKnotModelNode(String) | Constructor | |
| TorusKnotModelNode(Material, String) | Constructor | |
| TorusKnotModelNode(Vector3, Single, Single, Single, Material, String) | Constructor | |
| TorusKnotModelNode(Vector3, Int32, Int32, Single, Single, Single, Int32, Int32, Material, String) | Constructor |
| Name | Description | |
|---|---|---|
| CenterPosition | Center position of the torus knot. Default value is (0, 0, 0). Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| P | P parameter (number of rotations around its axis of rotational symmetry). Default value is 1. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| Q | Q parameter (number of rotations around a circle in the interior of the torus). Default value is 0. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| Radius1 | First radius of the torus knot. Default value is 5. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| Radius2 | Second radius of the torus knot. Default value is 2. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| Radius3 | Third radius of the torus knot. Default value is 1. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| USegmentsCount | Number of segments along the length of the knot. Default value is 100. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. | |
| VSegmentsCount | Number of segments around one knot segment. Default value is 30. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
| Name | Description | |
|---|---|---|
| GetCenterPosition |
Returns center position of this Box.
When applyTransformation is true (by default), then center position is also transformed by Transform.
(Overrides ModelNodeGetCenterPosition(Boolean, Boolean)) | |
| OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be overriden and is called from InitializeSceneResources(Scene) method.
(Overrides ModelNodeOnInitializeSceneResources(Scene, VulkanDevice)) | |
| UpdateLocalBoundingBox |
UpdateLocalBoundingBox
(Overrides ModelNodeUpdateLocalBoundingBox) | |
| UpdateMesh |
UpdateMesh method recreates the mesh based on the current object properties.
The method should be overriden in the derived class that provides its own mesh generation.
(Overrides ModelNodeUpdateMesh) |