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.
The 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.
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.
The 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.