1.02 CURVE NETWORK

Loading

Date published: June 8, 2022

Description

Instead of inputting a single curve, this script takes a network of curves and simulates what would happen if all curves would aim to straighten out while keeping their intersection points fixed.

PROCEDURE

Intersection points are extracted from the input curve network. The intersection coordinates “t” within the domain of each curve are then used to shattered them at the intersection, generating a series of curve segments. The same straightening process is then applied as for the single curve: each resulting segment is converted to a polyline and then discretised. The simulation then attempts to re-arrange each segment with an angle as close to 0 degrees as possible between each consecutive segment.