Class MeshRectangleFacetImpl

java.lang.Object
cz.fidentis.analyst.data.mesh.impl.facet.MeshFacetImpl
cz.fidentis.analyst.data.mesh.impl.facet.MeshRectangleFacetImpl
All Implemented Interfaces:
MeshFacet, Serializable, Iterable<MeshTriangle>

public class MeshRectangleFacetImpl extends MeshFacetImpl
A rectangular mesh facet consisted of two triangles.
See Also:
  • Constructor Details

    • MeshRectangleFacetImpl

      public MeshRectangleFacetImpl(javax.vecmath.Point3d center, javax.vecmath.Vector3d normal, double width, double height)
      Constructor. The vertical and horizontal direction are estimated automatically.
      Parameters:
      center - Central point of the rectangle
      normal - Normalized normal vector
      width - Width
      height - Height
      Throws:
      IllegalArgumentException - if width or height are <= 0
    • MeshRectangleFacetImpl

      public MeshRectangleFacetImpl(javax.vecmath.Point3d center, javax.vecmath.Vector3d hDir, javax.vecmath.Vector3d vDir, double w, double h)
      Constructor.
      Parameters:
      center - Central point of the rectangle
      hDir - Normalized horizontal direction of the rectangle
      vDir - Normalized vertical direction of the rectangle
      w - Width
      h - Height
    • MeshRectangleFacetImpl

      public MeshRectangleFacetImpl(javax.vecmath.Point3d center, javax.vecmath.Vector3d hDir, javax.vecmath.Vector3d vDir, javax.vecmath.Vector3d normal, double w, double h)
      Constructor.
      Parameters:
      center - Central point of the rectangle
      hDir - Normalized horizontal direction of the rectangle
      vDir - Normalized vertical direction of the rectangle
      normal - Optional normalized normal direction perpendicular to hDir and vDir. Can be null.
      w - Width
      h - Height
  • Method Details

    • initRectangle

      protected final void initRectangle(javax.vecmath.Point3d center, javax.vecmath.Vector3d hDir, javax.vecmath.Vector3d vDir, javax.vecmath.Vector3d normal, double w, double h)