Skip to main content

Graph, Scalar

Lattice, Scalar

Graph, Scalar

Remove all of the intermediate vertices of a Graph where the vertex valency is equal to 2. All intermediate vertices will be removed by default, but an optional threshold angle may be used to preserve sharp vertices.

Inputs

NameTypeDescription
GraphGraphThe graph of which to collapse the beams.
ToleranceScalarThe maximum allowed angular difference between beams joined by a single vertex. beam angles greater than this threshold will be removed, collapsing the neighboring beams into one. a value of 180 deg will preserve all vertices.

Outputs

Type
Graph

Lattice, Scalar

Remove all of the intermediate vertices of a Lattice where the vertex valency is equal to 2. All intermediate vertices will be removed by default, but an optional threshold angle may be used to preserve sharp vertices.

Inputs

NameTypeDescription
LatticeLatticeThe lattice of which to collapse the beams.
ToleranceScalarThe maximum allowed angular difference between beams joined by a single vertex. beam angles greater than this threshold will be removed, collapsing the neighboring beams into one. a value of 180 deg will preserve all vertices.

Outputs

Type

Lattice