LinePatternLengthUnit

LinePatternLengthUnit

Specifies the units in which the length of a [[LinePattern]] is measured.

Enumeration Members

LinePatternLengthUnit.Object
Object: 0

Object space units before applying modelling matrices.

LinePatternLengthUnit.ProportionOfScreenHeight
ProportionOfScreenHeight: 3

A proportion of the height of the canvas, where 1 means the full height.

When this unit is used, the line pattern will appear the same regardless of zoom or distance from the camera. However, this requires extra calculation for each vertex in the line, which makes it less performant than other units.

LinePatternLengthUnit.ProportionOfScreenWidth
ProportionOfScreenWidth: 2

A proportion of the width of the canvas, where 1 means the full width.

When this unit is used, the line pattern will appear the same regardless of zoom or distance from the camera. However, this requires extra calculation for each vertex in the line, which makes it less performant than other units.

LinePatternLengthUnit.World
World: 1

Object space units after applying modelling matrices.