Icosphere | |
public class IcosphereModelNode : ModelNode
The IcosphereModelNode type exposes the following members.
| Name | Description | |
|---|---|---|
| IcosphereModelNode | Constructor | |
| IcosphereModelNode(String) | Constructor | |
| IcosphereModelNode(Material, String) | Constructor | |
| IcosphereModelNode(Vector3, Single, Int32, String) | Constructor | |
| IcosphereModelNode(Vector3, Single, Material, Int32, String) | Constructor |
| Name | Description | |
|---|---|---|
| CenterPosition | Gets or sets a center position of the sphere. | |
| CreateTextureCoordinates | Get or set a Boolean that specify if texture coordinates are also generated (this requires duplicating some positions and using a slower code path). When false, all TextureCoordinate values are set to (0, 0). Default value is true. | |
| Radius | Gets or sets a radius of the sphere. By default set to 1. | |
| Subdivisions | Gets or sets the number of times the initial (12 positions, 20 triangles) Icosphere is subdivided. This value must be between 0 and 8. Default value is 3 that creates a sphere with 642 positions and 1280 triangles. | |
| UseSharedIcosphereMesh | Gets or sets a Boolean that specifies is a shared icosphere Mesh is used and the final models is created by using a mesh transformation that changes the shared mesh based on CenterPosition and Radius. When false, then a new mesh instance is created that has the center and size that are specified for this icosphere model. Default value is true. |
| Name | Description | |
|---|---|---|
| GetCenterPosition |
Returns center position of this sphere.
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) |