sealed class Tinman.Engine.Scenes.Shapes.RoadBuilder

Derived from

MarkingBuilder abstract

Helper class for building vector shapes for roads (pavement and markings).

To build road shapes, the following steps are necessary:

  1. Create a ICurve that represents the center-line of a road, for example by using Curve.Tangent and filling in control points and tangents.

  2. Create a RoadBuilder and configure the CenterLine and Accuracy properties.

  3. Create RoadElement objects and add them to the builder (see Elements).

  4. Use IMarkingBuilder.ShapeFor to obtain the road shape.

Public / Constructors


public constructor RoadBuilder → ()

Creates a new instance of RoadBuilder.

Public / Attributes


public attribute Accuracy → (get,set)

value : float64

The accuracy to use.

The accuracy to use for geometric sub-division.

Defaults to 0, i.e. no sub-division.


public attribute CenterLine → (get,set)

value : ICurve

The center-line curve.

Specifies the center-line curve of the road.


public attribute Elements → (get)

value : IVector<RoadElement>

The list of road elements.

The road elements.