ClipperOffset
clipper.ClipperOffset (Class)
Performs polygon offsetting (inflating/shrinking).
Static Members
| Name | Type |
|---|---|
pt1 |
Point64 |
pt2 |
Point64 |
| Returns |
|---|
| PointD |
getLowestPathInfo(paths: Paths64): AnonStruct| Name | Type |
|---|---|
paths |
Paths64 |
| Returns |
|---|
| AnonStruct |
| Name | Type |
|---|---|
path |
Path64 |
isClosedPath |
Bool |
| Returns |
|---|
| Path64 |
| Name | Type |
|---|---|
path |
Path64 |
| Returns |
|---|
| Path64 |
| Name | Type |
|---|---|
val |
Float |
| Returns |
|---|
| Float |
| Name | Type | Default |
|---|---|---|
center |
Point64 | |
radiusX |
Float | |
radiusY |
Float | |
steps |
Int | 0 |
| Returns |
|---|
| Path64 |
Instance Members
arcTolerance: FloatmergeGroups: BoolmiterLimit: FloatpreserveCollinear: BoolreverseSolution: BooldeltaCallback: Null<Function>clear(): Void| Name | Type |
|---|---|
path |
Path64 |
joinType |
JoinType |
endType |
EndType |
| Name | Type |
|---|---|
paths |
Paths64 |
joinType |
JoinType |
endType |
EndType |
| Name | Type |
|---|---|
delta |
Float |
solution |
Paths64 |
executeTree(delta: Float, solutionTree: PolyTree64): Void| Name | Type |
|---|---|
delta |
Float |
solutionTree |
PolyTree64 |
| Name | Type |
|---|---|
deltaCallback |
Function |
solution |
Paths64 |
new(?miterLimit: Float = 2.0, ?arcTolerance: Float = 0.0, ?preserveCollinear: Bool = false, ?reverseSolution: Bool = false): Void| Name | Type | Default |
|---|---|---|
miterLimit |
Float | 2.0 |
arcTolerance |
Float | 0.0 |
preserveCollinear |
Bool | false |
reverseSolution |
Bool | false |
Private Members
Tolerance: Floatarc_const: FloatpathOut: Path64| Name | Type |
|---|---|
pt |
PointD |
dx |
Float |
dy |
Float |
| Returns |
|---|
| PointD |
| Name | Type |
|---|---|
pt |
PointD |
pivot |
PointD |
| Returns |
|---|
| PointD |
| Name | Type | Default |
|---|---|---|
value |
Float | |
epsilon |
Float | 0.001 |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
x |
Float |
y |
Float |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
vec |
PointD |
| Returns |
|---|
| PointD |
| Name | Type |
|---|---|
vec1 |
PointD |
vec2 |
PointD |
| Returns |
|---|
| PointD |
calcSolutionCapacity(): Int| Returns |
|---|
| Int |
checkPathsReversed(): Bool| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
delta |
Float |
| Name | Type |
|---|---|
pt |
Point64 |
norm |
PointD |
| Returns |
|---|
| Point64 |
| Name | Type |
|---|---|
pt |
Point64 |
norm |
PointD |
| Returns |
|---|
| PointD |
| Name | Type |
|---|---|
path |
Path64 |
j |
Int |
k |
Int |
| Name | Type |
|---|---|
path |
Path64 |
j |
Int |
k |
Int |
| Name | Type |
|---|---|
path |
Path64 |
j |
Int |
k |
Int |
cosA |
Float |
| Name | Type |
|---|---|
path |
Path64 |
j |
Int |
k |
Int |
angle |
Float |
| Name | Type |
|---|---|
path |
Path64 |
offsetPoint(group: clipper._ClipperOffset.Group, path: Path64, j: Int, k: Int): Int| Name | Type |
|---|---|
group |
clipper._ClipperOffset.Group |
path |
Path64 |
j |
Int |
k |
Int |
| Returns |
|---|
| Int |
offsetPolygon(group: clipper._ClipperOffset.Group, path: Path64): Void| Name | Type |
|---|---|
group |
clipper._ClipperOffset.Group |
path |
Path64 |
offsetOpenJoined(group: clipper._ClipperOffset.Group, path: Path64): Void| Name | Type |
|---|---|
group |
clipper._ClipperOffset.Group |
path |
Path64 |
offsetOpenPath(group: clipper._ClipperOffset.Group, path: Path64): Void| Name | Type |
|---|---|
group |
clipper._ClipperOffset.Group |
path |
Path64 |
doGroupOffset(group: clipper._ClipperOffset.Group): Void| Name | Type |
|---|---|
group |
clipper._ClipperOffset.Group |
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |