]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Expose offset calculation as API in PipingRules. 94/3694/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Tue, 10 Dec 2019 17:28:27 +0000 (19:28 +0200)
committerReino Ruusu <reino.ruusu@semantum.fi>
Tue, 10 Dec 2019 18:35:01 +0000 (20:35 +0200)
Change-Id: I60f154afe0ed87e6fa2e853c3daf1701f33a3bd9

org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipingRules.java

index d27de99b2fd4142be90cfc34a458f50d0228ed36..08675c242a35da019450f444a52153a1cfb64d14 100644 (file)
@@ -363,11 +363,11 @@ public class PipingRules {
 
        }
 
-       private static boolean calculateDirectedOffset(Vector3d startPoint, Vector3d endPoint, PipeControlPoint start, ArrayList<PipeControlPoint> list, PipeControlPoint end, Vector3d dir, Vector3d offset) {
+       public static boolean calculateDirectedOffset(Vector3d startPoint, Vector3d endPoint, PipeControlPoint start, ArrayList<PipeControlPoint> list, PipeControlPoint end, Vector3d dir, Vector3d offset) {
                return calculateOffset(startPoint, endPoint, start, list, end, dir, offset, true);
        }
 
-       private static boolean calculateOffset(Vector3d startPoint, Vector3d endPoint, PipeControlPoint start, ArrayList<PipeControlPoint> list, PipeControlPoint end, Vector3d dir, Vector3d offset) {
+       public static boolean calculateOffset(Vector3d startPoint, Vector3d endPoint, PipeControlPoint start, ArrayList<PipeControlPoint> list, PipeControlPoint end, Vector3d dir, Vector3d offset) {
                return calculateOffset(startPoint, endPoint, start, list, end, dir, offset, false);
        }