Click or drag to resize
AB4D logo

LatheMesh3DStartAngleVector3D Property

Gets or sets a Vector3D that is used to define the direction in which the segment with StartAngle is facing. This is used as the X axis for the base lathe geometry; the Y axis is defined by calculating a perpendicular vector to StartAngleVector3D and the lathe direction (= endPosition - startPosition). When StartAngleVector3D is null (by default), then MathUtils.GetPerpendicularVectors method is used to calculate the X and Y axes.

Namespace: Ab3d.Meshes
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public Vector3D? StartAngleVector3D { get; set; }

Property Value

NullableVector3D
Remarks

Gets or sets a Vector3D that is used to define the direction in which the segment with StartAngle is facing. This is used as the X axis for the base lathe geometry; the Y axis is defined by calculating a perpendicular vector to StartAngleVector3D and the lathe direction (= endPosition - startPosition).

When StartAngleVector3D is null (by default), then MathUtils.GetPerpendicularVectors method is used to calculate the X and Y axes.

StartAngleVector3D is used when custom start and end angles are used or when texture coordinates are generated.

For example:
- StartPosition is above the EndPosition (lathe direction is 0,-1,0),
- StartAngle = 0; EndAngle = 90,
- StartAngleVector3D is set to (1,0,0),

In this case the lathe starts in the X axis direction (1,0,0) and then the angle increases until it reaches 90 degrees in the (0,0,-1) direction.

See Also