]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Adapters.xml change missing from Flat Nozzle support 66/3366/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 18 Oct 2019 10:23:51 +0000 (13:23 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 18 Oct 2019 10:23:51 +0000 (13:23 +0300)
gitlab #34

Change-Id: I10ab35118eff9a5ef8652f570a4308a1c6d7af8b

org.simantics.plant3d/adapters.xml
org.simantics.plant3d/src/org/simantics/plant3d/geometry/FlatNozzleGeometryProvider.java

index 9efc3b18469ff8e549fe2fe2c454c5091b8dd3e6..1f100fa8275311e2bfdcbe3f93b85e63c51be580 100644 (file)
@@ -9,6 +9,10 @@
   class="org.simantics.plant3d.geometry.NozzleGeometryProvider">
   <this />
  </resource>
+ <resource uri="http://www.simantics.org/Plant3D-0.1/Builtin/FlatNozzleGeometryProvider"
+  class="org.simantics.plant3d.geometry.FlatNozzleGeometryProvider">
+  <this />
+ </resource>
  <resource uri="http://www.simantics.org/Plant3D-0.1/Builtin/ReducerGeometryProvider"
   class="org.simantics.plant3d.geometry.ReducerGeometryProvider">
   <this />
index 82ddb704422a852b9003b7ab3540406218d7a512..93eb70fd650f429378887a0f9ac7c2d939a709cb 100644 (file)
@@ -21,7 +21,7 @@ public class FlatNozzleGeometryProvider extends BuiltinGeometryProvider  {
        public Collection<TopoDS_Shape> 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);
        }