]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/geometry/ReducerGeometryProvider.java
No insertion of straight pipe in straight pipe
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / geometry / ReducerGeometryProvider.java
index 8697fe1447a32f67b0802c24c6f736edab9c40de..c82eab565bbafda5835a1cb69b55efbf962c8008 100644 (file)
@@ -53,7 +53,7 @@ public class ReducerGeometryProvider extends BuiltinMeshProvider  {
                List<Double> radius = new ArrayList<Double>();
                List<Vector3d> tangents = new ArrayList<Vector3d>();
                vertices.add(new Point3d(-length*0.5, 0.0, 0.0));
-               vertices.add(new Point3d( length*0.5, offset, 0.0));
+               vertices.add(new Point3d( length*0.5, -offset, 0.0));
                radius.add(this.radius);
                radius.add(this.radius2);
                tangents.add(new Vector3d(1.0,0.0,0.0));
@@ -78,6 +78,8 @@ public class ReducerGeometryProvider extends BuiltinMeshProvider  {
                
                if (props.containsKey("offset")) {
                        offset = (Double)props.get("offset");
+               } else {
+                   offset = 0.0;
                }