public interface IQuadEdge
In general, get operations can be performed without any degradation of performance. However, set operations on quad-edges often require down casting (narrow casting) of object references. In ordinary applications, the performance cost of down casting is small. But for TIN applications require very large data sets with repeated modifications to the edge structure of the TIN, this cost can degrade processing rates by as much as 25 percent. Thus this interface avoids specifying any methods that set edge relationships (connections).
See the definition of IConstraint for a discussion of constrained regions.
| Modifier and Type | Method and Description |
|---|---|
Vertex |
getA()
Gets the initial vertex for this edge.
|
Vertex |
getB()
Gets the second vertex for this edge.
|
IQuadEdge |
getBaseReference()
Gets the reference to the side-zero edge of the pair.
|
int |
getConstraintIndex()
Gets the index of the constraint associated with this edge.
|
IQuadEdge |
getDual()
Gets the dual edge to this instance.
|
IQuadEdge |
getDualFromReverse()
Gets the dual of the reverse reference of the edge.
|
IQuadEdge |
getForward()
Gets the forward reference of the edge.
|
IQuadEdge |
getForwardFromDual()
Gets the forward reference of the dual.
|
int |
getIndex()
Gets the index value for this edge.
|
double |
getLength()
Gets the length of the edge.
|
IQuadEdge |
getReverse()
Gets the reverse reference of the edge.
|
IQuadEdge |
getReverseFromDual()
Gets the reverse link of the dual.
|
int |
getSide()
Indicates which side of an edge a particular IQuadEdge instance is
attached to.
|
boolean |
isConstrained()
Indicates whether an edge is constrained.
|
boolean |
isConstrainedRegionBorder()
Indicates whether an edge represents the border of a constrained
region.
|
boolean |
isConstrainedRegionInterior()
Indicates whether the edge is in the interior of a constrained region.
|
boolean |
isConstrainedRegionMember()
Indicates whether the edge is a member of a constrained region
(is in the interior or serves as the border of a polygon-based constraint).
|
boolean |
isSynthetic()
Indicates whether the synthetic flag is set for the edge.
|
Iterable<IQuadEdge> |
pinwheel()
Gets an instance of an iterable that performs a pinwheel operation.
|
void |
setConstrained(int constraintIndex)
Sets an edge as constrained and sets its constraint index.
|
void |
setConstrainedRegionBorderFlag()
Sets a flag indicating that the edge is an edge of a constrained region.
|
void |
setConstrainedRegionInteriorFlag()
Sets the constrained region membership flag for the edge to true.
|
void |
setConstraintIndex(int constraintIndex)
Sets the constraint index for this edge.
|
void |
setSynthetic(boolean status)
Sets the synthetic flag for the edge.
|
Vertex getA()
Vertex getB()
IQuadEdge getBaseReference()
IQuadEdge getDual()
IQuadEdge getForwardFromDual()
IQuadEdge getReverseFromDual()
int getIndex()
When an edge is allocated, it is set with an arbitrary index value. This value will not change while the edge remains allocated by and edge-pool instance. As soon as the edge is released, it is likely to have its index value reassigned.
int getSide()
double getLength()
IQuadEdge getForward()
IQuadEdge getReverse()
IQuadEdge getDualFromReverse()
int getConstraintIndex()
void setConstraintIndex(int constraintIndex)
constraintIndex - a positive number indicating which constraint
a particular edge is associated with.boolean isConstrained()
void setConstrained(int constraintIndex)
constraintIndex - positive number indicating which constraint
a particular edge is associated with.boolean isConstrainedRegionMember()
boolean isConstrainedRegionInterior()
boolean isConstrainedRegionBorder()
void setConstrainedRegionBorderFlag()
void setConstrainedRegionInteriorFlag()
void setSynthetic(boolean status)
status - true if the edge is synthetic; otherwise, false.boolean isSynthetic()
Copyright © 2019. All rights reserved.