RoadBuilder

Description

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

Road​Builder


public constructor RoadBuilder → ()

Creates a new instance of RoadBuilder.

Public / Attributes

Accuracy


public attribute Accuracy → (get,set)

value : float64

[>=0]
The accuracy to use.

The accuracy to use for geometric sub-division.

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

Center​Line


public attribute CenterLine → (get,set)

value : ICurve

The center-line curve.

Specifies the center-line curve of the road.

Elements


[Constant]
public attribute Elements → (get)

value : IVector<RoadElement>

[not-null]
The list of road elements.

The road elements.