Interface Boundary3D
- All Superinterfaces:
Boundary<Point3D>, Serializable
- All Known Implementing Classes:
CompositeBoundary3D, ConvexPolyhedron3D
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a face of the 3D boundary. -
Method Summary
Modifier and TypeMethodDescriptiondefault RealComputes the boundary measure (perimeter/surface area).default intReturns the dimensionality of this boundary.getFaces()Returns all faces of this 3D boundary.default RealComputes the measure (length/area/volume) of this boundary.Returns the surface area.Returns all vertices of this 3D boundary.Returns the volume of this 3D boundary.booleanisConvex()Checks if this is a convex polyhedron.Projects this 3D boundary onto the XY plane.Projects this 3D boundary onto the XZ plane.Projects this 3D boundary onto the YZ plane.rotateAround(Vector3D axis, Real angleRadians) Rotates around an arbitrary axis.Rotates around the X axis.Rotates around the Y axis.Rotates around the Z axis.Slices this boundary with a plane.Methods inherited from interface Boundary
contains, convexHull, getBoundingBox, getCentroid, intersection, intersects, isEmpty, scale, translate, union
-
Method Details
-
getDimension
default int getDimension()Description copied from interface:BoundaryReturns the dimensionality of this boundary.- Specified by:
getDimensionin interfaceBoundary<Point3D>- Returns:
- 0 for point, 1 for line, 2 for polygon, 3 for polyhedron
-
getVertices
-
getFaces
-
getVolume
-
getSurfaceArea
-
getMeasure
Description copied from interface:BoundaryComputes the measure (length/area/volume) of this boundary. For 2D: area, for 3D: volume, for 1D: length.- Specified by:
getMeasurein interfaceBoundary<Point3D>- Returns:
- the measure as a Real value
-
getBoundaryMeasure
Description copied from interface:BoundaryComputes the boundary measure (perimeter/surface area). For 2D: perimeter, for 3D: surface area.- Specified by:
getBoundaryMeasurein interfaceBoundary<Point3D>- Returns:
- the boundary measure
-
isConvex
boolean isConvex()Checks if this is a convex polyhedron.- Returns:
- true if convex
-
rotateX
Rotates around the X axis.- Parameters:
angleRadians- rotation angle- Returns:
- rotated boundary
-
rotateY
Rotates around the Y axis.- Parameters:
angleRadians- rotation angle- Returns:
- rotated boundary
-
rotateZ
Rotates around the Z axis.- Parameters:
angleRadians- rotation angle- Returns:
- rotated boundary
-
rotateAround
Rotates around an arbitrary axis.- Parameters:
axis- the rotation axisangleRadians- rotation angle- Returns:
- rotated boundary
-
projectXY
-
projectXZ
-
projectYZ
-
slice
Slices this boundary with a plane.- Parameters:
planeNormal- the plane normalpointOnPlane- a point on the plane- Returns:
- the 2D cross-section
-