]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Changed Check Valve to point flow (pipeline definition) direction 18/3018/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 16 Jul 2019 10:39:34 +0000 (13:39 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Tue, 16 Jul 2019 10:39:34 +0000 (13:39 +0300)
gitlab #11

Change-Id: I018782d579a0a5159dd1e412860fe461a2503ce1

org.simantics.plant3d/src/org/simantics/plant3d/geometry/CheckValveGeometryProvider.java

index 85f4c7aa01146a44781bc2c9b81560eb0bda88b1..5106731647a34da576e1a4846b29648210ea1348 100644 (file)
@@ -20,8 +20,8 @@ public class CheckValveGeometryProvider extends BuiltinGeometryProvider {
        @Override
        public Collection<TopoDS_Shape> 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();