HE_Mesh
6.0.1
|
Public Member Functions | |
WB_Vector | getDirection (final int i) |
WB_Vector | getNormal (final int i) |
double | a (final int i) |
double | b (final int i) |
double | c (final int i) |
double | getLength (final int i) |
boolean | equals (final Object o) |
boolean | isCCW () |
WB_Ring | apply (final WB_Transform T) |
WB_Point | getPoint (final int i) |
double | getd (final int i, final int j) |
float | getf (final int i, final int j) |
WB_Point | getPointOnLine (final double t) |
WB_Point | getParametricPointOnLine (final double t) |
int | getNumberOfPoints () |
WB_Segment | getSegment (final int i) |
![]() | |
WB_Point | getPoint (final int i) |
double | getd (final int i, final int j) |
float | getf (final int i, final int j) |
WB_Point | getPointOnLine (final double t) |
WB_Point | getParametricPointOnLine (final double t) |
WB_Vector | getDirection (final int i) |
WB_Vector | getNormal (final int i) |
double | a (final int i) |
double | b (final int i) |
double | c (final int i) |
int | getNumberOfPoints () |
WB_Segment | getSegment (final int i) |
int | getNumberSegments () |
double | getLength (final int i) |
WB_PolyLine (final Collection<?extends WB_Coord > points) | |
WB_PolyLine (final WB_Coord...points) | |
boolean | equals (final Object o) |
int | hashCode () |
WB_PolyLine | apply (final WB_Transform T) |
WB_CoordCollection | getPoints () |
Protected Member Functions | |
WB_Ring () | |
WB_Ring (final List<?extends WB_Coord > points) | |
WB_Ring (final WB_Coord[] points) | |
![]() | |
WB_PolyLine () | |
Private Member Functions | |
void | getDirections () |
Private Attributes | |
WB_GeometryFactory | geometryfactory = new WB_GeometryFactory() |
|
protected |
|
protected |
points |
References wblut.geom.WB_Ring.getDirections().
|
protected |
points |
References wblut.geom.WB_Ring.getDirections().
double wblut.geom.WB_Ring.a | ( | final int | i | ) |
a.x+b.y+c=0
i |
WB_Ring wblut.geom.WB_Ring.apply | ( | final WB_Transform | T | ) |
References wblut.geom.WB_GeometryFactory2D.createRing().
double wblut.geom.WB_Ring.b | ( | final int | i | ) |
a.x+b.y+c=0
i |
double wblut.geom.WB_Ring.c | ( | final int | i | ) |
a.x+b.y+c=0
i |
boolean wblut.geom.WB_Ring.equals | ( | final Object | o | ) |
double wblut.geom.WB_Ring.getd | ( | final int | i, |
final int | j | ||
) |
WB_Vector wblut.geom.WB_Ring.getDirection | ( | final int | i | ) |
Get direction.
i |
|
private |
References wblut.geom.WB_Vector.getLength(), and wblut.geom.WB_Vector.normalizeSelf().
float wblut.geom.WB_Ring.getf | ( | final int | i, |
final int | j | ||
) |
double wblut.geom.WB_Ring.getLength | ( | final int | i | ) |
WB_Vector wblut.geom.WB_Ring.getNormal | ( | final int | i | ) |
Get a normal to the line.
i |
References wblut.geom.WB_GeometryFactory3D.createVector(), wblut.geom.WB_Vector.cross(), wblut.geom.WB_Vector.div(), wblut.geom.WB_Vector.getLength(), and wblut.math.WB_Epsilon.isZero().
int wblut.geom.WB_Ring.getNumberOfPoints | ( | ) |
WB_Point wblut.geom.WB_Ring.getParametricPointOnLine | ( | final double | t | ) |
WB_Point wblut.geom.WB_Ring.getPoint | ( | final int | i | ) |
WB_Point wblut.geom.WB_Ring.getPointOnLine | ( | final double | t | ) |
WB_Segment wblut.geom.WB_Ring.getSegment | ( | final int | i | ) |
boolean wblut.geom.WB_Ring.isCCW | ( | ) |
This check catches cases where the ring contains an A-B-A configuration of points. This can happen if the ring does not contain 3 distinct points (including the case where the input array has fewer than 4 elements), or it contains coincident line segments.
If disc is exactly 0, lines are collinear. There are two possible cases: (1) the lines lie along the x axis in opposite directions (2) the lines lie on top of one another
(1) is handled by checking if next is left of prev ==> CCW (2) will never happen if the ring is valid, so don't check for it (Might want to assert this)
References wblut.geom.WB_Point.equals(), wblut.geom.WB_Ring.getNumberOfPoints(), wblut.geom.WB_Ring.getPoint(), wblut.geom.WB_Predicates.orient2D(), wblut.geom.WB_MutableCoordinate.xd(), and wblut.geom.WB_MutableCoordinate.yd().
|
private |