abstract class AbstractCurve3D: AbstractGeometry3D, DefinableDomain<Double>, Tolerable

Abstract class for all geometric curve objects in 3D.

Fields

Name Description
val length: Double

Length of the curve

val endBoundType: BoundType

BoundType at the end of the curve

Constructors

Name Description
constructor()

Abstract class for all geometric curve objects in 3D.

Methods

calculatePointLocalCS

fun calculatePointLocalCS(curveRelativePoint: CurveRelativePoint1D): Result<Vector3D, Exception>

Returns the point in the local cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system. An error is returned, if the requested point is not within this curve's domain.

Parameters

Name Description
curveRelativePoint: CurveRelativePoint1D

point in curve relative coordinates

ReturnValue

Name Description
Result<Vector3D, Exception>

point in cartesian coordinates

calculatePointLocalCSUnbounded

protected abstract fun calculatePointLocalCSUnbounded(curveRelativePoint: CurveRelativePoint1D): Result<Vector3D, Exception>

Returns the point in the cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system.

Parameters

Name Description
curveRelativePoint: CurveRelativePoint1D

point in curve relative coordinates

ReturnValue

Name Description
Result<Vector3D, Exception>

point in cartesian coordinates

calculatePointGlobalCS

fun calculatePointGlobalCS(curveRelativePoint: CurveRelativePoint1D): Result<Vector3D, Exception>

Returns the point in the global cartesian coordinate system that is located on this curve and given by a point in the curve relative coordinate system. An error is returned, if the requested point is not within this curve's domain.

Parameters

Name Description
curveRelativePoint: CurveRelativePoint1D

point in curve relative coordinates

ReturnValue

Name Description
Result<Vector3D, Exception>

point in cartesian coordinates

calculateStartPointGlobalCS

fun calculateStartPointGlobalCS(): ()<Vector3D, Exception>

Returns the start point in the global cartesian coordinate system that is located on this curve.

ReturnValue

Name Description
()<Vector3D, Exception>

calculateEndPointGlobalCS

fun calculateEndPointGlobalCS(): ()<Vector3D, Exception>

Returns the end point in the global cartesian coordinate system that is located on this curve.

ReturnValue

Name Description
()<Vector3D, Exception>

calculatePointListGlobalCS

fun calculatePointListGlobalCS(step: Double, includeEndPoint: Boolean): Result, Exception><List<Vector3D>, Exception>

Returns a list of points on the curve with a step size of step.

Parameters

Name Description
step: Double

step size between the points

includeEndPoint: Boolean

true, if the endpoint shall be included

ReturnValue

Name Description
Result, Exception><List<Vector3D>, Exception>

list of points on this curve

accept

open fun accept(visitor: Geometry3DVisitor)

Accepting function so that a geometry visitor can pass by.

Parameters

Name Description
visitor: Geometry3DVisitor

ReturnValue

Name Description
Unit