Skip to content

Commit f6d3ef6

Browse files
committed
rename and make public the Normal to transform method
1 parent b882749 commit f6d3ef6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/eu/mihosoft/vrl/v3d/ext/org/poly2tri/PolygonUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)