Lib.point.generate.LinePoints - tixl3d/tixl GitHub Wiki

LinePoints

in Lib.point.generate


Define points from a source position to a direction.


Input Parameters

Name (Relevancy & Type) Description
Count (Int32) -
Center (Vector3) Starting point.
Direction (Vector3) The direction the line is being oriented. E.g. 0, 1, 0 would point the line upwards.
Length (Single) A factor multiplied to the direction of the line.
Direction of 2, 0, 0 × 1 and 1, 0, 0 × 2 are equavilent.
Pivot (Single) Defines how the Line is centered.

0 - the line starts at center
0.5 - the line is centered
1.0 - the last point of the line is at the Center.
GainAndBias (Vector2) -
Scale (Vector2) -
F1 (Vector2) -
F2 (Vector2) -
ColorA (Vector4) Color at the start of the line (I.e. at the Center)
ColorB (Vector4) -
Orientation (Int32) Sadly there is no simple method to define the orientation of the points.

Simple: Ignores Line direction and use the Orientation and Angle
Up Vector: Orient X towards the direction. This can have unpredictable results when line is pointing up or when using Orientation Angles.
Twist (Single) Twist the point orientations around the direction axis. This can ue useful if the line points are used as targers for repeating other elements, e.g, to build a spiral staircase.
OrientationAxis (Vector3) -
OrientationAngle (Single) -
AddSeparator (Boolean) When combining multiple lines into a single buffer, check this option will prevent connecting them.
W (Single) Width at the beginning of the line.
WOffset (Single) Delta added to the the start width.

Outputs

Name Type
OutBuffer T3.Core.DataTypes.BufferWithViews

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

⚠️ **GitHub.com Fallback** ⚠️