Commit 8fb687ef authored by Daniel Schramm's avatar Daniel Schramm
Browse files

Attribute renamed

parent 3dcc33bd
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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;
    }

@@ -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;