Cylinder3D

data class Cylinder3D(val radius: Double, val height: Double, val tolerance: Double, val affineSequence: AffineSequence3D = AffineSequence3D.EMPTY, numberSlices: Int = DEFAULT_NUMBER_SLICES) : 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.

Parameters

radius

radius of the cylinder

height

height of the cylinder

Constructors

Link copied to clipboard
constructor(radius: Double, height: Double, tolerance: Double, affineSequence: AffineSequence3D = AffineSequence3D.EMPTY, numberSlices: Int = DEFAULT_NUMBER_SLICES)

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
Link copied to clipboard
open override val tolerance: Double

tolerable threshold value

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