Class JavaPolygon3D
- java.lang.Object
-
- science.aist.imaging.api.domain.AbstractSurface<T,L>
-
- science.aist.imaging.api.domain.AbstractJavaPolygon<JavaPoint3D,JavaLine3D>
-
- science.aist.imaging.api.domain.threedimensional.JavaPolygon3D
-
- Direct Known Subclasses:
JavaTriangle3D
public class JavaPolygon3D extends AbstractJavaPolygon<JavaPoint3D,JavaLine3D>
3D polygon
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.domain.AbstractJavaPolygon
points
-
-
Constructor Summary
Constructors Constructor Description JavaPolygon3D(Collection<JavaPoint3D> points)
JavaPolygon3D(JavaPoint3D... points)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JavaPoint3D
calculateNormalvector()
protected JavaLine3D
createLine(JavaPoint3D p1, JavaPoint3D p2)
protected JavaPoint3D
createPoint(double x, double y, double z)
-
Methods inherited from class science.aist.imaging.api.domain.AbstractJavaPolygon
calculateContour, calculateInnerDepth, getPoints, getSize, isEmpty
-
Methods inherited from class science.aist.imaging.api.domain.AbstractSurface
getIntersection
-
-
-
-
Constructor Detail
-
JavaPolygon3D
public JavaPolygon3D(JavaPoint3D... points)
-
JavaPolygon3D
public JavaPolygon3D(Collection<JavaPoint3D> points)
-
-
Method Detail
-
createLine
protected JavaLine3D createLine(JavaPoint3D p1, JavaPoint3D p2)
- Specified by:
createLine
in classAbstractJavaPolygon<JavaPoint3D,JavaLine3D>
-
createPoint
protected JavaPoint3D createPoint(double x, double y, double z)
- Specified by:
createPoint
in classAbstractJavaPolygon<JavaPoint3D,JavaLine3D>
-
calculateNormalvector
protected JavaPoint3D calculateNormalvector()
- Specified by:
calculateNormalvector
in classAbstractSurface<JavaPoint3D,JavaLine3D>
- Returns:
- the normalvector of this surface
-
-