Class: SplineFragment
PathBuilding.SplineFragment(spline, segmentIndexStart, ts, segmentIndexEnd, tf)
Defines normalized spline fragment
Constructor
new SplineFragment(spline, segmentIndexStart, ts, segmentIndexEnd, tf)
Parameters:
Name | Type | Description |
---|---|---|
spline | PathBuilding.Spline | Underlying spline, fragment is based on |
segmentIndexStart | int | Defines starting segment index |
ts | float | Defines first segment starting T |
segmentIndexEnd | int | Defines final segment index |
tf | float | Defines last segment final T |
Properties:
Name | Type | Description |
---|---|---|
spline | PathBuilding.Spline | Underlying spline, fragment is based on |
segmentIndexStart | int | Starting segment index in spline |
segmentIndexEnd | int | Final segment index in spline |
pointIndexStart | int | Starting point index in spline |
pointIndexEnd | int | Final point index in spline |
ts | float | Starting segment index corresponding starting T value |
tf | float | Final segment index corresponding final T value |
Methods
overlaps(fragment) → {boolean}
Overlaping fragments check
Parameters:
Name | Type | Description |
---|---|---|
fragment | PathBuilding.SplineFragment |
Returns:
Is overlap found
Type
boolean
union(fragment) → PathBuilding.SplineFragment
Fragments union
Parameters:
Name | Type | Description |
---|---|---|
fragment | PathBuilding.SplineFragment | Union with fragment |
Returns:
Result fragment
Type