gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.71k stars 387 forks source link

More implicit operators to be used as Sign Distance Funcions #161

Open jagbarcelo opened 3 years ago

jagbarcelo commented 3 years ago

As described in http://www.gradientspace.com/tutorials/2018/2/20/implicit-surface-modeling, in the section for Boolean Operators, it would be very useful to have more primitives like the ones already implemented: ImplicitSphere3d() and ImplicitBox3d(). In particular, I am thinking about:

ImplicitCylinder3d ImplicitCone3d ImplicitTorus3d (maybe?)

Are there, by any chance, any plan for doing them? At least the Cylinder would great. Thanks.

Edit: Some of them (and many more) are already implemented in http://mercury.sexy/hg_sdf/ and https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm