Polygon3D

data class Polygon3D(val vertices: NonEmptyList<Vector3D>, val tolerance: Double, val affineSequence: AffineSequence3D = AffineSequence3D.EMPTY) : AbstractSurface3D

Planar polygon consisting of a list of vertices.

Parameters

vertices

vertices of the polygon must be located in a plane

Constructors

Link copied to clipboard
constructor(vertices: NonEmptyList<Vector3D>, 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
open override val tolerance: Double

tolerable threshold value

Link copied to clipboard
val vertices: NonEmptyList<Vector3D>

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 surface geometry and transforms it to the global coordinate system.

Link copied to clipboard

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

Link copied to clipboard

Returns the normal of the polygon.

Link copied to clipboard

Returns a new polygon with an opposite facing by reversing the vertices order

Link copied to clipboard

Returns the coordinates of all vertices as a flattened list