GraphiteEditor/Graphite

Convex Hull node

Open

#1.673 geöffnet am 11. März 2024

Auf GitHub ansehen
 (9 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1.176 Forks)batch import
Good First Issue

Repository-Metriken

Stars
 (25.662 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 9h) (65 gemergte PRs in 30 T)

Beschreibung

This node should convert vector shapes into convex hulls of their shapes, preserving their convex curves and bridging their concave parts with straight lines.

@Keavon Just wanted a run-down of how you want this to work. I'll be implementing a standard algorithm but wanted to ask if you had any specific functionality in mind.

Edit: Information for whoever wants to tackle this task:

While there is plenty of literature about building the convex hull from polygons (polylines), there is much less on the internet about algorithms for doing that from bezier curves. You'll have to do some additional research to solve this, either through Googling for online resources or reading academic papers or thinking through a solution to the problem yourself as an extension of one of the polyline algorithms. The same algorithm needs to work for both shapes such as a hexagon and a circle.

Contributor Guide