Click or drag to resize
Ab4d.SharpEngine logo

TubePathModelNode Class

A 3D object consisting of tubes connecting the path between specified points.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class TubePathModelNode : ModelNode

The TubePathModelNode type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyGenerateTextureCoordinates Generate texture coordinates. Automatically considered true if pathPositionTextureCoordinates is valid. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyIsPathClosed Flag indicating whether the path is closed, i.e., the last point is automatically connected to the first one. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyIsTubeClosed Flag indicating whether the tube is closed, i.e., has filled the start and end circle surface). Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyPathPositions Array of path positions. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyPathPositionTextureCoordinates Optional array of texture coordinates corresponding to given path positions. If not specified, the texture is evenly divided among path segments. If fewer texture coordinates are given than there are path points, the last texture coordinate is replicated. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyRadius Tube radius. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertySegments 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.
Top
Methods
 NameDescription
Protected methodUpdateMesh 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)
Top
See Also