Loading Comparison/src/main/java/cz/fidentis/analyst/visitors/mesh/PrioritySphere.java +7 −7 Original line number Diff line number Diff line Loading @@ -16,16 +16,16 @@ import javax.vecmath.Point3d; */ public class PrioritySphere extends MeshVisitor { private final Point3d featurePointPosition; private final Point3d sphereCenterPosition; private final double sphereRadius; private final Map<MeshFacet, List<Double>> priorities = new HashMap<>(); public PrioritySphere(Point3d featurePointPosition, double sphereRadius) { if (featurePointPosition == null) { throw new IllegalArgumentException("featurePointPosition"); public PrioritySphere(Point3d sphereCenterPosition, double sphereRadius) { if (sphereCenterPosition == null) { throw new IllegalArgumentException("sphereCenterPosition"); } this.featurePointPosition = featurePointPosition; this.sphereCenterPosition = sphereCenterPosition; this.sphereRadius = sphereRadius; } Loading @@ -38,7 +38,7 @@ public class PrioritySphere extends MeshVisitor { final List<MeshPoint> vertices = facet.getVertices(); for (int i = 0; i < vertices.size(); i++) { final double distance = featurePointPosition.distance(vertices.get(i).getPosition()); final double distance = sphereCenterPosition.distance(vertices.get(i).getPosition()); final double priority; if (distance > sphereRadius) { priority = 0; Loading Loading
Comparison/src/main/java/cz/fidentis/analyst/visitors/mesh/PrioritySphere.java +7 −7 Original line number Diff line number Diff line Loading @@ -16,16 +16,16 @@ import javax.vecmath.Point3d; */ public class PrioritySphere extends MeshVisitor { private final Point3d featurePointPosition; private final Point3d sphereCenterPosition; private final double sphereRadius; private final Map<MeshFacet, List<Double>> priorities = new HashMap<>(); public PrioritySphere(Point3d featurePointPosition, double sphereRadius) { if (featurePointPosition == null) { throw new IllegalArgumentException("featurePointPosition"); public PrioritySphere(Point3d sphereCenterPosition, double sphereRadius) { if (sphereCenterPosition == null) { throw new IllegalArgumentException("sphereCenterPosition"); } this.featurePointPosition = featurePointPosition; this.sphereCenterPosition = sphereCenterPosition; this.sphereRadius = sphereRadius; } Loading @@ -38,7 +38,7 @@ public class PrioritySphere extends MeshVisitor { final List<MeshPoint> vertices = facet.getVertices(); for (int i = 0; i < vertices.size(); i++) { final double distance = featurePointPosition.distance(vertices.get(i).getPosition()); final double distance = sphereCenterPosition.distance(vertices.get(i).getPosition()); final double priority; if (distance > sphereRadius) { priority = 0; Loading