![]() | |
Tube |
public class TubeModelNode : ModelNode
The TubeModelNode type exposes the following members.
Name | Description | |
---|---|---|
![]() | TubeModelNode | Create a 3D tube. |
![]() | TubeModelNode(String) | Create a 3D tube. |
![]() | TubeModelNode(Material, String) | Create a 3D tube. |
![]() | TubeModelNode(Vector3, Single, Single, Single, Int32, String) | Create an upright 3D tube with same inner and outer radius at both ends. When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes a cylinder (generated as a lathe mesh). |
![]() | TubeModelNode(Vector3, Vector3, Single, Single, Single, Int32, String) | Create a 3D tube with same inner and outer radius at both ends, and direction given by the specified height direction vector. When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes a cylinder (generated as a lathe mesh). |
![]() | TubeModelNode(Vector3, Single, Single, Single, Int32, Material, String) | Create an upright 3D tube with same inner and outer radius at both ends. When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes a cylinder (generated as a lathe mesh). |
![]() | TubeModelNode(Vector3, Vector3, Single, Single, Single, Int32, Material, String) | Create a 3D tube with same inner and outer radius at both ends, and direction given by the specified height direction vector. When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes a cylinder (generated as a lathe mesh). |
![]() | TubeModelNode(Vector3, Vector3, Single, Single, Single, Single, Single, Int32, Single, Single, String) | Create a 3D tube with custom parametrization (i.e., height direction vector, start and end angle for the tube's side surface, separate radii settings for each end of the tube). When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes a cylinder (generated as a lathe mesh). |
![]() | TubeModelNode(Vector3, Vector3, Single, Single, Single, Single, Single, Int32, Single, Single, Material, String) | Create a 3D tube with custom parametrization (i.e., height direction vector, start and end angle for the tube's side surface, separate radii settings for each end of the tube). When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes a cylinder (generated as a lathe mesh). |
Name | Description | |
---|---|---|
![]() | BottomCenterPosition | Bottom center position of the tube. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | BottomInnerRadius | Inner radius of the tube at the bottom end. If both inner radii are zero, a cylinder is rendered as a special case. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | BottomOuterRadius | Outer radius of the tube at the bottom end. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | EndAngle | End angle of the arc that defines the tube's side surface, in degrees. Default value is 360. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | Height | Height of the tube. If zero, a flattened 2D shape (e.g., a circle with a hole) is rendered as a special case. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | HeightDirection | Height direction vector. The default value is (0, 1, 0), i.e., vector pointing up. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | Segments | Number of segments comprising the tube's side surface. 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. |
![]() | StartAngle | Start angle of the arc that defines the tube's side surface, in degrees. 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. |
![]() | TopInnerRadius | Inner radius of the tube at the top end. If both inner radii are zero, a cylinder is rendered as a special case. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
![]() | TopOuterRadius | Outer radius of the tube at the top end. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. |
Name | Description | |
---|---|---|
![]() | 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) |
TubeModelNode represents a 3D tube object.
On change of a property a new mesh is generated. To optimize the generation process and create only a single mesh for the tube, it is possible to get the mesh by calling MeshFactory.CreateTubeMesh and the using MeshModelNode object.