ParaShape

Layers, patterns and views

Entries of the layers, patterns and views lanes.

4 methods: addLayer, addPattern, view, lineFamily.

addLayer - Layer

A key a row carries, so a view can hide everything carrying it.

role step, type layer, valid on layers, returns layer, default key layer.

addPattern - Pattern

Hatch pattern record, identified by its node key; its line families are lineFamily steps.

role step, type pattern, valid on patterns, returns pattern, default key pattern.

view - View

A camera pose with a projection switch — perspective reads fov, orthographic reads height.

role step, type view, valid on views, returns view, default key view.

ArgTypeDefaultMinMaxOptionsDescription
positionpoint[1000, 1000, 1000]Eye position.
targetpoint[0, 0, 0]Look-at point; must differ from position.
upvector[0, 0, 1]Up direction; must not be parallel to (target - position).
projectionstring'perspective'['perspective', 'orthographic']Which lens is read — 'perspective' (fov) or 'orthographic' (height).
fovnumber451179Vertical field of view, degrees — read only when projection is 'perspective'.
heightlength20000World height seen by the frame, mm, not an elevation — read only when projection is 'orthographic'.

lineFamily - Line Family

One infinite parallel-line family drawn over a hatch region.

role step, type pattern, valid on patterns, returns pattern, default key lineFamily.

ArgTypeDefaultMinMaxOptionsDescription
angleangle0Direction of the family, degrees counter-clockwise from hatch-space +X.
originpoint[0, 0]A point the first line passes through, in hatch space [x, y]. Not rewritten on a unit change.
shiftlength0Slide along the line direction between one line and the next; visible once dashes breaks the line up.
spacinglengthDistance across, between one line and the next; a negative value flips which side the family repeats toward. Must not be 0.
dasheslength[]Repeating pen cycle (SVG stroke-dasharray spelling); absent = a solid line.
lineWidthlengthStroke width. Absent = the renderer's hairline.
colorcolor#rrggbb. Absent = inherit from the placement's material.
dotSizelengthDiameter painted for a zero-length dash. Absent = lineWidth.

Edit on GitHub