leap71 / PicoGKRuntime

PicoGK Runtime is the C++ framework behind PicoGK a compact and robust geometry kernel for Computational Engineering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voxels.ProjectZSlice create degenerate signed distance field

LinKayser opened this issue · comments

The Voxels.ProjectZSlice function creates a degenerate signed distance field, because the signed distance values further away from the last slice are not updated accordingly. This needs a bit more elaborate solution.

If you are using ProjectZSlice to build a base for your object (which is the most common use), you can work around this, by projecting down below zero and then performing a boolean operation, cutting off the degenerate base.

See Ex_PrepForPrint.cs for a good example.

Fixed, at least for now. The SDF is not perfect, but good enough for practical purposes.