wilko339 / MetaStruct

Python project dedicated to creating an open-source CAD designer using implicit equations.
MIT License
32 stars 4 forks source link

New feature: surface texturing #6

Open thsmit opened 9 months ago

thsmit commented 9 months ago

Hi Toby,

Do you have ideas how to implement surface texturing?

Best, Thijs

wilko339 commented 9 months ago

Hi Thijs, depends on what kind of texturing you are looking for! If you can define the distance field for the texture you want, you can use the boolean operations to add or subtract this from a shape you've created. I did this once with some Perlin noise to distort a cube. You could also do something like using the edges or vertices of a mesh to create nodes or struts, which you could create a surface lattice from.

thsmit commented 9 months ago

Hi Toby, thanks for your response. It looks like that nTop uses the approach you mention, create distance field and subtract that from the main body, or?