data class Polyhedron3D: AbstractSolid3D

Represents a polyhedron in 3D.

Fields

Name Description
val polygons: List<Polygon3D>

faces of the polyhedron geometry

val tolerance: Double

tolerable threshold value

val affineSequence: AffineSequence3D

List of affine transformation matrices to move and rotate the geometric object.

Constructors

<init>

constructor(polygons: List<Polygon3D>, tolerance: Double, affineSequence: AffineSequence3D)

Represents a polyhedron in 3D.

Parameters

Name Description
polygons: List<Polygon3D>

faces of the polyhedron geometry

tolerance: Double
affineSequence: AffineSequence3D

Methods

calculatePolygonsLocalCS

fun calculatePolygonsLocalCS(): Result, Exception><List<Polygon3D>, Exception>

Calculates the polygons for the respective solid geometry within the local coordinate system of the surface.

ReturnValue

Name Description
Result, Exception><List<Polygon3D>, Exception>