Constructor

@:value({ data : null })new(pointsPerSegment:Int, ?data:Vector<Vector3D>)

Variables

read onlynumSegments:Int

write onlypointData:Vector<Vector3D>

read onlysegments:Vector<IPathSegment>

Methods

addSegment(segment:IPathSegment):Void

dispose():Void

@:value({ target : null })getPointOnCurve(t:Float, ?target:Vector3D):Vector3D

getPointsOnCurvePerSegment(subdivision:Int):Vector<Vector<Vector3D>>

getSegmentAt(index:Int):IPathSegment

returns a given PathSegment from the path (PathSegment holds 3 Vector3D's)

Parameters:

indice

uint. the indice of a given PathSegment

Returns:

given PathSegment from the path

@:value({ join : false })removeSegment(index:Int, join:Bool = false):Void

removes a segment in the path according to id.

Parameters:

index

int. The index in path of the to be removed curvesegment

join

Boolean. If true previous and next segments coordinates are reconnected