From: Marko Luukkainen Date: Tue, 16 Jul 2019 10:39:34 +0000 (+0300) Subject: Changed Check Valve to point flow (pipeline definition) direction X-Git-Tag: v1.43.0~253 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b951060202f08360f6b0696a208adbf69e926fa6;p=simantics%2F3d.git Changed Check Valve to point flow (pipeline definition) direction gitlab #11 Change-Id: I018782d579a0a5159dd1e412860fe461a2503ce1 --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/CheckValveGeometryProvider.java b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/CheckValveGeometryProvider.java index 85f4c7aa..51067316 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/CheckValveGeometryProvider.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/CheckValveGeometryProvider.java @@ -20,8 +20,8 @@ public class CheckValveGeometryProvider extends BuiltinGeometryProvider { @Override public Collection getModel() throws Exception { double l = radius*0.2; - TopoDS_Shape cyl = OccTriangulator.makeCylinder(new double[] {-radius, 0.0, 0.0}, new double[] { 1.0, 0.0, 0.0 }, radius, l); - TopoDS_Shape con = OccTriangulator.makeCone(new double[] {-radius, 0.0, 0.0}, new double[] { 1.0, 0.0, 0.0 }, radius*0.1, radius,radius*2); + TopoDS_Shape cyl = OccTriangulator.makeCylinder(new double[] {radius-l, 0.0, 0.0}, new double[] { 1.0, 0.0, 0.0 }, radius, l); + TopoDS_Shape con = OccTriangulator.makeCone(new double[] {-radius, 0.0, 0.0}, new double[] { 1.0, 0.0, 0.0 }, radius, radius*0.1,radius*2); TopoDS_Shape shape = OccTriangulator.makeFuse(cyl, con); cyl.delete(); con.delete();