findOrAddParamInLineString Method
Add a uv parameter to the polyface, taking u from ls.fractions and v from input.
- If
indexis an invalid index forls.fractions,uis computed asindex / ls.points.length. - The implementation is free to either create a new param or return the index of a prior param with the same coordinates.
findOrAddParamInLineString(ls: LineString3d, index: number, v: number, priorIndexA?: number, priorIndexB?: number): number
@returns the uv parameter index in the polyface.
| Parameter | Type | Description |
|---|---|---|
| ls | LineString3d | the linestring. |
| index | number | index of the point in the linestring. |
| v | number | the v parameter. |
| priorIndexA | number | (optional) an index of a prior param to check for possible duplicate value. |
| priorIndexB | number | (optional) another index of a prior param to check for possible duplicate value. |
Returns - number
the uv parameter index in the polyface.
Defined in
- polyface/PolyfaceBuilder.ts Line 502
Last Updated: 06 December, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.