Join Nostr
2026-05-23 13:25:36 UTC

Karsten Schmidt on Nostr: #ReleaseDay The new version of is automatically preprocessing the vertices given for ...

#ReleaseDay The new version of https://thi.ng/geom-sdf is automatically preprocessing the vertices given for 2D polygons & polylines to remove any coincident and colinear ones (using Douglas-Peucker algorithm). This avoids some degenerate cases, but can also speed up the SDF evaluation of converted shapes in some other cases...

Thanks to for reporting the issue! 🙏

(To clarify: This package is for converting 2D shapes/geometries/SVG to composable SDF JavaScript/TypeScript functions, not for shader-based SDF use cases. For the latter, the https://thi.ng/shader-ast-stdlib package provides similar SDF functions/operators, for use with https://thi.ng/shader-ast and transpilation to GLSL)

Some examples:

thi.ng logo as SDF:
https://demo.thi.ng/umbrella/geom-sdf-logo/

SVG smiley deformation:
https://demo.thi.ng/umbrella/geom-sdf-path/

#ThingUmbrella #SDF #SVG #Geometry #Shapes #TypeScript #JavaScript