data class Cuboid3D: 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.

Fields

Name Description
val length: Double

length of cuboid in the direction of the x axis

val width: Double

width of cuboid in the direction of the y axis

val height: Double

height of the cuboid in the direction of the z axis

val tolerance: Double

tolerable threshold value

val affineSequence: AffineSequence3D

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

Constructors

<init>

constructor(length: Double, width: Double, height: Double, tolerance: Double, affineSequence: AffineSequence3D)

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

Name Description
length: Double

length of cuboid in the direction of the x axis

width: Double

width of cuboid in the direction of the y axis

height: Double

height of the cuboid in the direction of the z axis

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>

toString

fun toString(): String

ReturnValue

Name Description
String

CompanionObject

Cuboid3D

data class Cuboid3D: 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.

Fields

Name Description
val UNIT: Cuboid3D