From: Marko Luukkainen Date: Fri, 18 Oct 2019 10:23:51 +0000 (+0300) Subject: Adapters.xml change missing from Flat Nozzle support X-Git-Tag: v1.43.0~186 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F3366%2F1;p=simantics%2F3d.git Adapters.xml change missing from Flat Nozzle support gitlab #34 Change-Id: I10ab35118eff9a5ef8652f570a4308a1c6d7af8b --- diff --git a/org.simantics.plant3d/adapters.xml b/org.simantics.plant3d/adapters.xml index 9efc3b18..1f100fa8 100644 --- a/org.simantics.plant3d/adapters.xml +++ b/org.simantics.plant3d/adapters.xml @@ -9,6 +9,10 @@ class="org.simantics.plant3d.geometry.NozzleGeometryProvider"> + + + diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/FlatNozzleGeometryProvider.java b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/FlatNozzleGeometryProvider.java index 82ddb704..93eb70fd 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/FlatNozzleGeometryProvider.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/FlatNozzleGeometryProvider.java @@ -21,7 +21,7 @@ public class FlatNozzleGeometryProvider extends BuiltinGeometryProvider { public Collection getModel() throws Exception { if (radius < MathTools.NEAR_ZERO) return Collections.emptyList(); - double length = 0.01; + double length = 0.001; TopoDS_Shape shape = OccTriangulator.makeCylinder(new double[] {0.0, 0.0, 0.0}, new double[] { 1.0, 0.0, 0.0 }, radius, length); return Collections.singletonList(shape); }