Click or drag to resize
Ab4d.SharpEngine logo

TubePathModelNode(Vector3, Single, Boolean, Boolean, Int32, Vector2, Boolean, Material, String) Constructor

Create a 3D tube path.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public TubePathModelNode(
	Vector3[] pathPositions,
	float radius,
	bool isTubeClosed,
	bool isPathClosed,
	int segments,
	Vector2[]? pathPositionTextureCoordinates,
	bool generateTextureCoordinates,
	Material material,
	string? name = null
)

Parameters

pathPositions  Vector3
Array of path positions.
radius  Single
Tube radius.
isTubeClosed  Boolean
Flag indicating whether the tube is closed, i.e., has filled the start and end circle surface).
isPathClosed  Boolean
Flag indicating whether the path is closed, i.e., the last point is automatically connected to the first one.
segments  Int32
Number of segments comprising the tube's side surface.
pathPositionTextureCoordinates  Vector2
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.
generateTextureCoordinates  Boolean
Generate texture coordinates. Automatically considered true if pathPositionTextureCoordinates is valid.
material  Material
Mesh material.
name  String  (Optional)
Optional node name.
See Also