Constructor
new Edge(shape)
Construct new instance of edge
- Source:
Parameters:
Name | Type | Description |
---|---|---|
shape |
Shape
|
Shape of type Segment or Arc |
Classes
Members
bv :*
Edge inclusion flag (Flatten.INSIDE, Flatten.OUTSIDE, Flatten.BOUNDARY)
- Source:
Type:
-
*
overlap :*
Overlap flag for boundary edge (Flatten.OVERLAP_SAME/Flatten.OVERLAP_OPPOSITE)
- Source:
Type:
-
*
Methods
contains(pt)
Returns true if point belongs to the edge, false otherwise
- Source:
Parameters:
Name | Type | Description |
---|---|---|
pt |
Point
|
test point |
pointAtLength(length) → {Point}
Get point at given length
- Source:
Parameters:
Name | Type | Description |
---|---|---|
length |
number
|
The length along the edge |
Returns:
- Type:
-
Point
setInclusion(polygon)
Set inclusion flag of the edge with respect to another polygon
Inclusion flag is one of Flatten.INSIDE, Flatten.OUTSIDE, Flatten.BOUNDARY
- Source:
Parameters:
Name | Type | Description |
---|---|---|
polygon |
setOverlap(edge)
Set overlapping between two coincident boundary edges
Overlapping flag is one of Flatten.OVERLAP_SAME or Flatten.OVERLAP_OPPOSITE
- Source:
Parameters:
Name | Type | Description |
---|---|---|
edge |