Search in sources :

Example 1 with ArdorVector3Point

use of org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point in project energy3d by concord-consortium.

the class Wall method applyXYTransform.

public void applyXYTransform(final List<Vector3> hole) {
    if (toXY == null) {
        computeNormalAndXYTransform();
    }
    for (final Vector3 p : hole) {
        final Point point = new ArdorVector3Point(p);
        toXY.transform(point);
        p.set(point.getX(), point.getY(), point.getZ());
    }
}
Also used : ReadOnlyVector3(com.ardor3d.math.type.ReadOnlyVector3) Vector3(com.ardor3d.math.Vector3) PolygonPoint(org.poly2tri.geometry.polygon.PolygonPoint) ArdorVector3Point(org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point) TPoint(org.poly2tri.triangulation.point.TPoint) Point(org.poly2tri.geometry.primitives.Point) ArdorVector3Point(org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point)

Aggregations

Vector3 (com.ardor3d.math.Vector3)1 ReadOnlyVector3 (com.ardor3d.math.type.ReadOnlyVector3)1 PolygonPoint (org.poly2tri.geometry.polygon.PolygonPoint)1 Point (org.poly2tri.geometry.primitives.Point)1 TPoint (org.poly2tri.triangulation.point.TPoint)1 ArdorVector3Point (org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point)1