Loading MeshModel/src/main/java/cz/fidentis/analyst/shapes/Plane.java +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. Loading Loading @@ -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); } Loading @@ -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); } Loading @@ -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()); } Loading Loading
MeshModel/src/main/java/cz/fidentis/analyst/shapes/Plane.java +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. Loading Loading @@ -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); } Loading @@ -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); } Loading @@ -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()); } Loading