HE_Mesh
6.0.1
|
Public Member Functions | |
WB_Triangle (final WB_Coord p1, final WB_Coord p2, final WB_Coord p3) | |
void | cycle () |
void | cycle (int n) |
WB_Coord | p1 () |
WB_Coord | p2 () |
WB_Coord | p3 () |
double | a () |
double | b () |
double | c () |
double | cosA () |
double | cosB () |
double | cosC () |
WB_Coord | getPoint (final int i) |
WB_Point | getCenter () |
WB_Triangle | apply (final WB_Transform T) |
WB_Plane | getPlane () |
WB_Map2D | getEmbeddedPlane () |
WB_Point | getCentroid () |
WB_Point | getCircumcenter () |
WB_Point | getOrthocenter () |
WB_Point | getPointFromTrilinear (final double x, final double y, final double z) |
WB_Point | getPointFromBarycentric (final double x, final double y, final double z) |
double[] | getBarycentricCoordinates (final WB_Coord p) |
WB_Point | getBarycentric (final WB_Coord p) |
double | getArea () |
WB_AABB | getAABB () |
WB_AABB2D | getAABB2D () |
double | getSignedArea () |
WB_Circle | getCircumcircle () |
WB_Circle | getIncircle () |
WB_Point | getIncenter () |
double | minX () |
double | minY () |
double | minZ () |
double | maxX () |
double | maxY () |
double | maxZ () |
Protected Member Functions | |
WB_Triangle () | |
void | update () |
Private Attributes | |
double | a |
double | b |
double | c |
double | cosA |
double | cosB |
double | cosC |
WB_GeometryFactory | geometryfactory = new WB_GeometryFactory() |
|
protected |
p1 | |
p2 | |
p3 |
References wblut.geom.WB_Triangle.p1(), wblut.geom.WB_Triangle.p2(), wblut.geom.WB_Triangle.p3(), and wblut.geom.WB_Triangle.update().
double wblut.geom.WB_Triangle.a | ( | ) |
WB_Triangle wblut.geom.WB_Triangle.apply | ( | final WB_Transform | T | ) |
double wblut.geom.WB_Triangle.b | ( | ) |
double wblut.geom.WB_Triangle.c | ( | ) |
double wblut.geom.WB_Triangle.cosA | ( | ) |
double wblut.geom.WB_Triangle.cosB | ( | ) |
double wblut.geom.WB_Triangle.cosC | ( | ) |
void wblut.geom.WB_Triangle.cycle | ( | ) |
void wblut.geom.WB_Triangle.cycle | ( | int | n | ) |
References wblut.geom.WB_Triangle.cycle().
WB_AABB wblut.geom.WB_Triangle.getAABB | ( | ) |
WB_AABB2D wblut.geom.WB_Triangle.getAABB2D | ( | ) |
double wblut.geom.WB_Triangle.getArea | ( | ) |
Gets the area.
References wblut.math.WB_Math.fastAbs(), and wblut.geom.WB_Triangle.getSignedArea().
Barycentric.
p | the p |
References wblut.geom.WB_Vector.cross(), wblut.math.WB_Math.fastAbs(), wblut.geom.WB_Vector.subToVector3D(), wblut.geom.WB_GeometryOp2D.twiceSignedTriArea2D(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_Coord.yd(), wblut.geom.WB_MutableCoordinate.yd(), wblut.geom.WB_Coord.zd(), and wblut.geom.WB_MutableCoordinate.zd().
double [] wblut.geom.WB_Triangle.getBarycentricCoordinates | ( | final WB_Coord | p | ) |
p |
References wblut.geom.WB_GeometryOp2D.twiceSignedTriArea2D(), wblut.geom.WB_Coord.xd(), and wblut.geom.WB_Coord.yd().
WB_Point wblut.geom.WB_Triangle.getCenter | ( | ) |
References wblut.geom.WB_GeometryFactory3D.createMidpoint().
WB_Point wblut.geom.WB_Triangle.getCentroid | ( | ) |
WB_Point wblut.geom.WB_Triangle.getCircumcenter | ( | ) |
WB_Circle wblut.geom.WB_Triangle.getCircumcircle | ( | ) |
Get circumcircle.
References wblut.math.WB_Epsilon.isZero(), wblut.geom.WB_Circle.setCenter(), wblut.geom.WB_Circle.setRadius(), wblut.geom.WB_Coord.xd(), and wblut.geom.WB_Coord.yd().
WB_Map2D wblut.geom.WB_Triangle.getEmbeddedPlane | ( | ) |
References wblut.geom.WB_GeometryFactory3D.createEmbeddedPlane(), and wblut.geom.WB_Triangle.getPlane().
WB_Point wblut.geom.WB_Triangle.getIncenter | ( | ) |
WB_Circle wblut.geom.WB_Triangle.getIncircle | ( | ) |
Get incircle.
References wblut.geom.WB_Point.addSelf(), wblut.geom.WB_Triangle.c(), wblut.geom.WB_Point.divSelf(), wblut.geom.WB_Point.mul(), wblut.geom.WB_Circle.setCenter(), and wblut.geom.WB_Circle.setRadius().
WB_Point wblut.geom.WB_Triangle.getOrthocenter | ( | ) |
Get orthocenter.
References wblut.geom.WB_Triangle.a(), wblut.geom.WB_Triangle.b(), wblut.geom.WB_Triangle.c(), and wblut.geom.WB_Triangle.getPointFromBarycentric().
WB_Plane wblut.geom.WB_Triangle.getPlane | ( | ) |
Get plane of triangle.
References wblut.geom.WB_Triangle.getCenter(), wblut.geom.WB_Plane.getNormal(), wblut.geom.WB_Vector.getSqLength(), and wblut.math.WB_Epsilon.SQEPSILON.
WB_Coord wblut.geom.WB_Triangle.getPoint | ( | final int | i | ) |
WB_Point wblut.geom.WB_Triangle.getPointFromBarycentric | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
Get point from barycentric coordinates.
x | the x |
y | the y |
z | the z |
References wblut.geom.WB_Triangle.getPointFromTrilinear().
WB_Point wblut.geom.WB_Triangle.getPointFromTrilinear | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
Get point from trilinear coordinates.
x | the x |
y | the y |
z | the z |
References wblut.geom.WB_Point.addSelf(), wblut.geom.WB_Point.divSelf(), wblut.geom.WB_Point.mulSelf(), and wblut.geom.WB_Point.sub().
double wblut.geom.WB_Triangle.getSignedArea | ( | ) |
References wblut.math.WB_Math.fastAbs(), wblut.geom.WB_Plane.getNormal(), wblut.geom.WB_Triangle.getPlane(), wblut.geom.WB_Coord.xd(), wblut.geom.WB_MutableCoordinate.xd(), wblut.geom.WB_Coord.yd(), wblut.geom.WB_MutableCoordinate.yd(), wblut.geom.WB_Coord.zd(), and wblut.geom.WB_MutableCoordinate.zd().
double wblut.geom.WB_Triangle.maxX | ( | ) |
References wblut.geom.WB_Coord.xd().
double wblut.geom.WB_Triangle.maxY | ( | ) |
References wblut.geom.WB_Coord.yd().
double wblut.geom.WB_Triangle.maxZ | ( | ) |
References wblut.geom.WB_Coord.zd().
double wblut.geom.WB_Triangle.minX | ( | ) |
References wblut.geom.WB_Coord.xd().
double wblut.geom.WB_Triangle.minY | ( | ) |
References wblut.geom.WB_Coord.yd().
double wblut.geom.WB_Triangle.minZ | ( | ) |
References wblut.geom.WB_Coord.zd().
WB_Coord wblut.geom.WB_Triangle.p1 | ( | ) |
WB_Coord wblut.geom.WB_Triangle.p2 | ( | ) |
WB_Coord wblut.geom.WB_Triangle.p3 | ( | ) |
|
protected |
Update side lengths and corner angles.
References wblut.geom.WB_Triangle.b(), wblut.geom.WB_Triangle.c(), wblut.geom.WB_GeometryFactory3D.createEmbeddedPlane(), wblut.geom.WB_Vector.getDistance3D(), wblut.geom.WB_Triangle.getPlane(), wblut.math.WB_Epsilon.isZero(), wblut.geom.WB_Map.mapPoint3D(), wblut.geom.WB_MutableCoordinate.xd(), and wblut.geom.WB_MutableCoordinate.yd().
|
private |
Length of side a.
|
private |
Length of side b.
|
private |
Length of side c.
|
private |
Cosine of angle A.
|
private |
Cosine of angle B.
|
private |
Cosine of angle C.
|
private |