AsImpL 1.0
Asynchronous Importer and run-time Loader for Unity
AsImpL.MathUtil.Vertex Class Reference

Vertex structure used for triangulation. More...

Public Member Functions

 Vertex (int originalIndex, Vector3 position)
 Construct a Vertex by defining its index in the original list and its position in 3D space. More...
 
Vector2 GetPosOnPlane (Vector3 planeNormal)
 Get 2D position of this vertex on the plane defined by the given normal. More...
 

Properties

Vector3 Position [get]
 Coordinates in 3D space. More...
 
int OriginalIndex [get]
 Saved index in the original list. More...
 
Vertex PreviousVertex [getset]
 Reference to the previous vertex this vertex is attached to. More...
 
Vertex NextVertex [getset]
 Reference to the next vertex this vertex is attached to. More...
 
float TriangleArea [get]
 Area of the triangle this vertex belogs to, automatically computed each time the connected vertices change. More...
 

Detailed Description

Vertex structure used for triangulation.

See also
Triangulation

Constructor & Destructor Documentation

◆ Vertex()

AsImpL.MathUtil.Vertex.Vertex ( int  originalIndex,
Vector3  position 
)

Construct a Vertex by defining its index in the original list and its position in 3D space.

Parameters
originalIndexIndex in the original list.
positionPosition in 3D space.

Member Function Documentation

◆ GetPosOnPlane()

Vector2 AsImpL.MathUtil.Vertex.GetPosOnPlane ( Vector3  planeNormal)

Get 2D position of this vertex on the plane defined by the given normal.

Parameters
planeNormalNormal of the plane used to project 3D vertices in 2D.
Returns

Property Documentation

◆ NextVertex

Vertex AsImpL.MathUtil.Vertex.NextVertex
getset

Reference to the next vertex this vertex is attached to.

◆ OriginalIndex

int AsImpL.MathUtil.Vertex.OriginalIndex
get

Saved index in the original list.

◆ Position

Vector3 AsImpL.MathUtil.Vertex.Position
get

Coordinates in 3D space.

◆ PreviousVertex

Vertex AsImpL.MathUtil.Vertex.PreviousVertex
getset

Reference to the previous vertex this vertex is attached to.

◆ TriangleArea

float AsImpL.MathUtil.Vertex.TriangleArea
get

Area of the triangle this vertex belogs to, automatically computed each time the connected vertices change.


The documentation for this class was generated from the following file: