findOrAddParamInLineString Method

Announce param coordinates, taking u from ls.fractions and v from parameter. The implementation is free to either create a new param or (if known) return index of a prior point with the same coordinates.

findOrAddParamInLineString(ls: LineString3d, index: number, v: number, priorIndexA?: number, priorIndexB?: number): undefined | number

Parameter Type Description
ls LineString3d  
index number Index of the point in the linestring.
v number  
priorIndexA number  
priorIndexB number  

Returns - undefined | number

Returns the point index in the Polyface.

Defined in

Last Updated: 20 June, 2023