Commit a343bbde authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Resolve "Fix MeshModel"

parent d5823c82
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
package cz.fidentis.analyst.shapes;

import cz.fidentis.analyst.mesh.MeshFacet;
import cz.fidentis.analyst.mesh.impl.facet.MeshRectangleFacetImpl;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;
import javax.vecmath.Matrix4d;
import javax.vecmath.Point3d;
import javax.vecmath.Tuple3d;
import javax.vecmath.Vector3d;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * Immutable symmetry plane.
@@ -421,7 +422,7 @@ public class Plane implements Serializable {
     * @throws NullPointerException if the {@code point} is {@code null}
     * @throws IllegalArgumentException if {@code width} or {@code height} are <= 0
     */
    public MeshRectangleFacetImpl getMesh(Point3d point, double width, double height) {
    public MeshFacet getMesh(Point3d point, double width, double height) {
        return new MeshRectangleFacetImpl(projectToPlane(point), normal, width, height);
    }
    
@@ -434,7 +435,7 @@ public class Plane implements Serializable {
     * @throws NullPointerException if the {@code point} is {@code null}
     * @throws IllegalArgumentException if {@code size} is <= 0
     */
    public MeshRectangleFacetImpl getMesh(Point3d point, double size) {
    public MeshFacet getMesh(Point3d point, double size) {
        return getMesh(point, size, size);
    }

@@ -446,7 +447,7 @@ public class Plane implements Serializable {
     * @return a rectangular mesh facet of this symmetry plane
     * @throws NullPointerException if the {@code midPoint} or {@code bbox} are {@code null}
     */
    public MeshRectangleFacetImpl getMesh(Box bbox) {
    public MeshFacet getMesh(Box bbox) {
        return getMesh(bbox.getMidPoint(), bbox.getDiagonalLength(), bbox.getDiagonalLength());
    }