]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/shape/Tube.java
Merge "Up-to-date resource classes"
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / shape / Tube.java
index dc7ff4e5270a31c0707df36e02a4531556781989..6b1bf618b7533f8183aed58c4210b27278b4f790 100644 (file)
@@ -72,7 +72,7 @@ public class Tube {
                for (int i = 0; i < vertices.size() - 1; i++) {
                        t.set(vertices.get(i+1));
                        t.sub(vertices.get(i));
-                       if (t.lengthSquared() < 0.000001)
+                       if (t.lengthSquared() < 0.0000001)
                                throw new IllegalArgumentException("vertices at index " + i + " are too close to each other");
                }