DSD-DBS / py-capellambse

A Python 3 headless implementation of the Capella modeling tool.
https://dsd-dbs.github.io/py-capellambse/
Apache License 2.0
53 stars 11 forks source link

Implement two-point oblique vector snapping #454

Closed Wuestengecko closed 2 months ago

Wuestengecko commented 2 months ago

The "oblique" algorithm for vector snapping on Boxes used to ignore the source point, and would instead always snap to the closest point on the border. Now, if we do have a source, we take the incoming edge's direction into account when calculating the border intersection points.