data class Cylinder3D: AbstractSolid3D

Represents a cylinder in 3D which center is located at the local coordinate system's origin and raises in the direction of the z axis.

Fields

Name Description
val diameter: Double
val radius: Double

radius of the cylinder

val height: Double

height of the cylinder

val tolerance: Double

tolerable threshold value

val affineSequence: AffineSequence3D

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

Constructors

<init>

constructor(radius: Double, height: Double, tolerance: Double, affineSequence: AffineSequence3D, numberSlices: Int)

Represents a cylinder in 3D which center is located at the local coordinate system's origin and raises in the direction of the z axis.

Parameters

Name Description
radius: Double

radius of the cylinder

height: Double

height of the cylinder

tolerance: Double
affineSequence: AffineSequence3D
numberSlices: Int

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>

accept

fun accept(visitor: Geometry3DVisitor)

Accepting function so that a geometry visitor can pass by.

Parameters

Name Description
visitor: Geometry3DVisitor

ReturnValue

Name Description
Unit

toString

fun toString(): String

ReturnValue

Name Description
String

CompanionObject

Cylinder3D

data class Cylinder3D: AbstractSolid3D

Represents a cylinder in 3D which center is located at the local coordinate system's origin and raises in the direction of the z axis.

Fields

Name Description
const DEFAULT_NUMBER_SLICES: Int