class Solid3DBuilder: Any

Builder for solid geometries in 3D from the OpenDRIVE data model.

Constructors

<init>

constructor(reportLogger: Logger, parameters: Opendrive2RoadspacesParameters)

Builder for solid geometries in 3D from the OpenDRIVE data model.

Parameters

Name Description
reportLogger: Logger
parameters: Opendrive2RoadspacesParameters

Methods

buildCuboids

fun buildCuboids(srcRoadObject: RoadObjectsObject, curveAffine: Affine3D): List<Cuboid3D>

Builds a list of cubiods from the OpenDRIVE road object class (RoadObjectsObject) directly or from the repeated entries defined in RoadObjectsObjectRepeat.

Parameters

Name Description
srcRoadObject: RoadObjectsObject
curveAffine: Affine3D

ReturnValue

Name Description
List<Cuboid3D>

buildCylinders

fun buildCylinders(srcRoadObject: RoadObjectsObject, curveAffine: Affine3D): List<Cylinder3D>

Builds a list of cylinders from the OpenDRIVE road object class (RoadObjectsObject) directly or from the repeated entries defined in RoadObjectsObjectRepeat.

Parameters

Name Description
srcRoadObject: RoadObjectsObject
curveAffine: Affine3D

ReturnValue

Name Description
List<Cylinder3D>

buildPolyhedronsByRoadCorners

fun buildPolyhedronsByRoadCorners(id: RoadspaceObjectIdentifier, srcRoadObject: RoadObjectsObject, roadReferenceLine: Curve3D): List<Polyhedron3D>

Builds a list of polyhedrons from OpenDRIVE road objects defined by road corner outlines.

Parameters

Name Description
id: RoadspaceObjectIdentifier

identifier of the road space object for error logging

srcRoadObject: RoadObjectsObject

road object of OpenDRIVE

roadReferenceLine: Curve3D

road reference line for transforming curve relative coordinates

ReturnValue

Name Description
List<Polyhedron3D>

list of polyhedrons

buildPolyhedronsByLocalCorners

fun buildPolyhedronsByLocalCorners(id: RoadspaceObjectIdentifier, srcRoadObject: RoadObjectsObject, curveAffine: Affine3D): List<Polyhedron3D>

Builds a list of polyhedrons from OpenDRIVE road objects defined by local corner outlines.

Parameters

Name Description
id: RoadspaceObjectIdentifier

identifier of the road space object for error logging

srcRoadObject: RoadObjectsObject

road object of OpenDRIVE

curveAffine: Affine3D

affine transformation matrix from the curve

ReturnValue

Name Description
List<Polyhedron3D>

list of polyhedrons

buildParametricSweeps

fun buildParametricSweeps(srcRoadObject: RoadObjectsObject, roadReferenceLine: Curve3D): List<ParametricSweep3D>

Builds a parametric sweep from OpenDRIVE road objects defined by the repeat entries.

Parameters

Name Description
srcRoadObject: RoadObjectsObject

road object of OpenDRIVE

roadReferenceLine: Curve3D

road reference line for transforming curve relative coordinates

ReturnValue

Name Description
List<ParametricSweep3D>