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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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