Header menu logo Euclid

VarDistParallel Type

An Enum for describing what to do with colinear segments with different offset distances. It is not possible to offset colinear segments if the distances are not the same. This Enum describes the options: 1: Fail 2: just skip the point. 3: add a point at closest distance on the oblique segment, non parallel offsets. 4: add a point perpendicular from here intersecting the oblique segment, non parallel offsets. 5: add a step with two points.

Record fields

Record Field Description

Fail

Full Usage: Fail

Field type: VarDistParallel
Modifiers: static

Fail if colinear segments with different offset distances are found.

Field type: VarDistParallel

Project

Full Usage: Project

Field type: VarDistParallel
Modifiers: static

Project the offset point onto the oblique segment. In shallow angles with strongly different distances the projected point may be outside of the input segments. This introduces non parallel offset segments. This keeps the total point count the same. This may create a self-intersection in the result if the projected point is outside of the segment. The Proportional method is usually better.

Field type: VarDistParallel

Proportional

Full Usage: Proportional

Field type: VarDistParallel
Modifiers: static

Add a point at the same proportional distance as the input segments. This keeps the total point count the same. This introduces non parallel offset segments. This keeps the total point count the same.

Field type: VarDistParallel

Skip

Full Usage: Skip

Field type: VarDistParallel
Modifiers: static

Just skip colinear points with different offset distances. This introduces non parallel offset segments. This reduces the total point count.

Field type: VarDistParallel

StepWithTwoPoints

Full Usage: StepWithTwoPoints

Field type: VarDistParallel
Modifiers: static

Add a step with two points at the colinear segment. This keeps parallel offset segments. But introduces an extra point.

Field type: VarDistParallel

Type something to start searching.