Type Alias LineStyle

LineStyle: "solid" | "dashed" | "dotted" | "dashDot" | "dashDotDot"

Named dash/gap conventions for line-primitive meshes.

Each preset is a repeating [dash, gap, dash, gap, …] sequence whose entries are measured in line-width units — each value is multiplied by the current line width when the pattern is applied. A "dashed" line at lineWidth = 1 and a "dashed" line at lineWidth = 8 therefore have identical visual proportions, just scaled.

Mirrors the standard engineering / architectural conventions (ISO 128, AutoCAD ACAD.lin):

  • "solid" — continuous (no pattern).
  • "dashed" — visible-but-hidden / construction lines.
  • "dotted" — fine reference / phantom lines.
  • "dashDot" — centre / symmetry / axis lines.
  • "dashDotDot" — phantom / future-construction lines.

Custom patterns can be set as a plain number[] (up to 8 entries, alternating dash/gap, units of line-width).