SegmentedRoadCurve
Description
The SegmentedRoadCurve object represents the horizontal curve
of a segmented road in a RoadRunner scene. The horizontal curve of a segmented road enables you to build a road
curve by specifying separate segments of various curve types and joining them together, end to
end.
The horizontal curve of a segmented road in RoadRunner support these types of road segments:
Lines— Have a curvature of zero
Arcs— Have a constant curvature
Spirals— Have a blending curvature
Parametric Cubics— Consist of cubic tangents with control points
For more information on the geometry of road curves in RoadRunner, see.
Creation
TOUCHING HERE To create a SegmentedRoadCurve object, extract the
HorizontalCurve property of a segmented road, specified by
a Road object, in your RoadRunner scene. For example, given the Road object,
rrRoad, segmentedCurve= rrRoad.HorizontalCurve
extracts the horizontal curve of the segmented road to get the
SegmentedRoadCurve object segmentedCurve. You can add
segments to a segmented road curve by using the addLine,
addArc, addSpiral, and
addParametricCubic functions.
Object Functions
addLine | Add new line segment to horizontal curve of segmented road |
addArc | Add new arc segment to horizontal curve of segmented road |
addSpiral | Add new spiral segment to horizontal curve of segmented road |
addParametricCubic | Add new parametric cubic segment to horizontal curve of segmented road |
Examples
Version History
Introduced in R2025a