File tree Expand file tree Collapse file tree
src/main/java/eu/mihosoft/vrl/v3d/ext/org/poly2tri Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ private PolygonUtil() {
509509 *
510510 * @throws ColinearPointsException
511511 */
512- private static Transform calculateQuaternionTransform (Polygon concave ) throws ColinearPointsException {
512+ public static Transform calculateNormalTransform (Polygon concave ) throws ColinearPointsException {
513513 // Normalize inputs
514514 Vector3d u = concave .getPlane ().getNormal ();
515515 Vector3d v = new Vector3d (0 , 0 , 1 );
@@ -562,7 +562,7 @@ public static ArrayList<Polygon> triangulatePolygon(Polygon incoming) throws Col
562562 boolean debug = false ;
563563
564564 if (reorient ) {
565- Transform orientation = calculateQuaternionTransform (incoming );
565+ Transform orientation = calculateNormalTransform (incoming );
566566 tmp = incoming .transformed (orientation );
567567 orientationInv = orientation .inverse ();
568568 }
You can’t perform that action at this time.
0 commit comments