From b951060202f08360f6b0696a208adbf69e926fa6 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Tue, 16 Jul 2019 13:39:34 +0300 Subject: [PATCH] Changed Check Valve to point flow (pipeline definition) direction gitlab #11 Change-Id: I018782d579a0a5159dd1e412860fe461a2503ce1 --- .../plant3d/geometry/CheckValveGeometryProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.47.1