deadsy / sdfx

A simple CAD package using signed distance functions
MIT License
533 stars 52 forks source link

Create Render2, analogous to Render3 and add new SDF2 renderer. #47

Closed Yeicor closed 2 years ago

Yeicor commented 2 years ago

This pull request creates the Render2 interface, very similar to Render3 (#41), implementing it for marching squares (uniform and quadtree).

It also adds a new algorithm that I've been developing capable of quickly creating simplified and sharp shapes for SDF2s (e.g. a rotated square with only 4 lines), and hopefully do the same for SDF3s in the future (help wanted). It is implemented in a different repo but it adds no other new dependencies to this project. See the repo for examples.

deadsy commented 2 years ago

Done - with the exception that the "surreal" renderer has not been added.