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>
A rectangular mesh facet consisted of two triangles.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMeshRectangleFacetImpl
(javax.vecmath.Point3d center, javax.vecmath.Vector3d normal, double width, double height) Constructor.MeshRectangleFacetImpl
(javax.vecmath.Point3d center, javax.vecmath.Vector3d hDir, javax.vecmath.Vector3d vDir, double w, double h) Constructor.MeshRectangleFacetImpl
(javax.vecmath.Point3d center, javax.vecmath.Vector3d hDir, javax.vecmath.Vector3d vDir, javax.vecmath.Vector3d normal, double w, double h) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
initRectangle
(javax.vecmath.Point3d center, javax.vecmath.Vector3d hDir, javax.vecmath.Vector3d vDir, javax.vecmath.Vector3d normal, double w, double h) Methods inherited from class cz.fidentis.analyst.data.mesh.impl.facet.MeshFacetImpl
accept, addVertex, calculateVertexNormals, calculateVoronoiPoints, curvatureDistance, getAdjacentTriangles, getAdjacentTriangles, getAdjacentTriangles, getClosestAdjacentPoint, getCornerTable, getNeighboringTriangles, getNumberOfVertices, getNumTriangles, getOneRingNeighborhood, getTriangles, getVertex, getVertices, hasVertexNormals, iterator, simplify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
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 rectanglenormal
- Normalized normal vectorwidth
- Widthheight
- Height- Throws:
IllegalArgumentException
- ifwidth
orheight
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 rectanglehDir
- Normalized horizontal direction of the rectanglevDir
- Normalized vertical direction of the rectanglew
- Widthh
- 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 rectanglehDir
- Normalized horizontal direction of the rectanglevDir
- Normalized vertical direction of the rectanglenormal
- Optional normalized normal direction perpendicular tohDir
andvDir
. Can benull
.w
- Widthh
- 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)
-