public interface ConnectorSkeleton
Modifier and Type | Method and Description |
---|---|
Point3 |
apply(int i)
The i-th point of the edge shape.
|
Point3 |
from()
The first point of the edge shape.
|
boolean |
isCurve()
If true the edge shape is a loop defined by four points.
|
boolean |
isLoop()
This is only set when the edge is a curve, if true the starting and ending
nodes of the edge are the same node.
|
boolean |
isMulti() |
boolean |
isPoly()
If true the edge shape is a polyline made of size points.
|
java.lang.String |
kindString() |
double |
length()
Total length of the polyline defined by the points.
|
int |
multi()
If larger than one there are several edges between the two nodes of this
edge.
|
Point3 |
pointOnShape(double percent)
Compute a point at the given percent on the shape and return it.
|
Point3 |
pointOnShape(double percent,
Point3 target)
Compute a point at a given percent on the shape and store it in the target,
also returning it.
|
Point3 |
pointOnShapeAndPerpendicular(double percent,
double perpendicular)
Compute a point at a given percent on the shape and push it from the shape
perpendicular to it at a given distance in GU.
|
Point3 |
pointOnShapeAndPerpendicular(double percent,
double perpendicular,
Point3 target)
Compute a point at a given percent on the shape and push it from the shape
perpendicular to it at a given distance in GU.
|
double |
segmentLength(int i)
Length of the i-th segment.
|
double[] |
segmentsLengths()
Compute the length of each segment between the points making up this edge.
|
void |
setCurve(double x0,
double y0,
double z0,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3) |
void |
setLine(double x0,
double y0,
double z0,
double x1,
double y1,
double z1) |
void |
setLoop(double x0,
double y0,
double z0,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
void |
setMulti(int aMulti) |
void |
setPoly(java.lang.Object aSetOfPoints) |
void |
setPoly(Point3[] aSetOfPoints) |
int |
size()
The number of points in the edge shape.
|
Point3 |
to()
The last point of the edge shape.
|
void |
update(int i,
Point3 p)
Change the i-th point in the set of points making up the shape of this edge.
|
java.lang.String kindString()
boolean isPoly()
boolean isCurve()
int multi()
boolean isLoop()
void setPoly(java.lang.Object aSetOfPoints)
void setPoly(Point3[] aSetOfPoints)
void setCurve(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3)
void setLine(double x0, double y0, double z0, double x1, double y1, double z1)
void setMulti(int aMulti)
boolean isMulti()
void setLoop(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2)
int size()
Point3 apply(int i)
void update(int i, Point3 p)
Point3 to()
Point3 from()
double length()
double[] segmentsLengths()
double segmentLength(int i)
Point3 pointOnShape(double percent)
Point3 pointOnShape(double percent, Point3 target)
Point3 pointOnShapeAndPerpendicular(double percent, double perpendicular)
Point3 pointOnShapeAndPerpendicular(double percent, double perpendicular, Point3 target)