private static class PolygonsSet.Edge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PolygonsSet.Vertex |
end
End vertex.
|
private Line |
line
Line supporting the edge.
|
private BSPTree<Euclidean2D> |
node
Node whose cut hyperplane contains this edge.
|
private PolygonsSet.Vertex |
start
Start vertex.
|
Constructor and Description |
---|
PolygonsSet.Edge(PolygonsSet.Vertex start,
PolygonsSet.Vertex end,
Line line)
Build an edge not contained in any node yet.
|
Modifier and Type | Method and Description |
---|---|
PolygonsSet.Vertex |
getEnd()
Get end vertex.
|
Line |
getLine()
Get the line supporting this edge.
|
BSPTree<Euclidean2D> |
getNode()
Get the node whose cut hyperplane contains this edge.
|
PolygonsSet.Vertex |
getStart()
Get start vertex.
|
void |
setNode(BSPTree<Euclidean2D> node)
Set the node whose cut hyperplane contains this edge.
|
PolygonsSet.Vertex |
split(Line splitLine)
Split the edge.
|
private final PolygonsSet.Vertex start
private final PolygonsSet.Vertex end
private final Line line
private BSPTree<Euclidean2D> node
public PolygonsSet.Edge(PolygonsSet.Vertex start, PolygonsSet.Vertex end, Line line)
start
- start vertexend
- end vertexline
- line supporting the edgepublic PolygonsSet.Vertex getStart()
public PolygonsSet.Vertex getEnd()
public Line getLine()
public void setNode(BSPTree<Euclidean2D> node)
node
- node whose cut hyperplane contains this edgepublic BSPTree<Euclidean2D> getNode()
public PolygonsSet.Vertex split(Line splitLine)
Once split, this edge is not referenced anymore by the vertices, it is replaced by the two half-edges and an intermediate splitting vertex is introduced to connect these two halves.
splitLine
- line splitting the edge in two halvesCopyright (c) 2003-2014 Apache Software Foundation