Skip to main content

Class: SplineFragment

PathBuilding.SplineFragment(spline, segmentIndexStart, ts, segmentIndexEnd, tf)

Defines normalized spline fragment

Constructor

new SplineFragment(spline, segmentIndexStart, ts, segmentIndexEnd, tf)

Parameters:
NameTypeDescription
splinePathBuilding.SplineUnderlying spline, fragment is based on
segmentIndexStartintDefines starting segment index
tsfloatDefines first segment starting T
segmentIndexEndintDefines final segment index
tffloatDefines last segment final T
Properties:
NameTypeDescription
splinePathBuilding.SplineUnderlying spline, fragment is based on
segmentIndexStartintStarting segment index in spline
segmentIndexEndintFinal segment index in spline
pointIndexStartintStarting point index in spline
pointIndexEndintFinal point index in spline
tsfloatStarting segment index corresponding starting T value
tffloatFinal segment index corresponding final T value

Methods

overlaps(fragment) → {boolean}

Overlaping fragments check

Parameters:
NameTypeDescription
fragmentPathBuilding.SplineFragment
Returns:

Is overlap found

Type

boolean

union(fragment) → PathBuilding.SplineFragment

Fragments union

Parameters:
NameTypeDescription
fragmentPathBuilding.SplineFragmentUnion with fragment
Returns:

Result fragment

Type

PathBuilding.SplineFragment

Home