Skip to main content

interface.RoadCrossSection

API > RoadCrossSection

Interface: RoadCrossSection

Cross section of a road

Properties

codes

readonly codes: number[]

Layer codes, this array matches the 3d and 2d points

Source

@novorender/measure/modules/road/index.ts:23


labels

readonly labels: string[]

Layer names, this array matches the 3d and 2d points

Source

@novorender/measure/modules/road/index.ts:16


points

readonly points: ReadonlyVec3[]

3d points between the different layers [ditch, should, road, center]

Source

@novorender/measure/modules/road/index.ts:9


points2D

readonly points2D: ReadonlyVec2[]

2d points between the different layers [ditch, should, road, center] projected on a plane along the center line

Source

@novorender/measure/modules/road/index.ts:14


slopes

readonly slopes: object

Slope from centerline to shoulder [left, Right]

Type declaration

slopes.left

left: object

left.end

end: ReadonlyVec3

left.slope

slope: number

left.start

start: ReadonlyVec3

slopes.right

right: object

right.end

end: ReadonlyVec3

right.slope

slope: number

right.start

start: ReadonlyVec3

Source

@novorender/measure/modules/road/index.ts:18