Cuboid3D

data class Cuboid3D(val length: Double, val width: Double, val height: Double, val tolerance: Double, val affineSequence: AffineSequence3D = AffineSequence3D.EMPTY) : AbstractSolid3D

Represents a cuboid in 3D with the dimension (length, width, height). The origin of the local coordinate system is located at the center of the ground face.

Parameters

length

length of cuboid in the direction of the x axis

width

width of cuboid in the direction of the y axis

height

height of the cuboid in the direction of the z axis

Constructors

Link copied to clipboard
constructor(length: Double, width: Double, height: Double, tolerance: Double, affineSequence: AffineSequence3D = AffineSequence3D.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val affineSequence: AffineSequence3D

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val tolerance: Double

tolerable threshold value

Link copied to clipboard

Functions

Link copied to clipboard
open override fun accept(visitor: Geometry3DVisitor)

Accepting function so that a geometry visitor can pass by.

Link copied to clipboard

Calculates the polygons for the respective solid geometry and transforms it to the global coordinate system.

Link copied to clipboard
open override fun calculatePolygonsLocalCS(): NonEmptyList<Polygon3D>

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

Link copied to clipboard
open override fun toString(): String