GithubHelp home page GithubHelp logo

Hollow out 3D meshes by this tool? about sdfx HOT 3 CLOSED

deadsy avatar deadsy commented on May 15, 2024
Hollow out 3D meshes by this tool?

from sdfx.

Comments (3)

deadsy avatar deadsy commented on May 15, 2024 1

The function you are looking for is sdf.Offset3D()
You can see an example of it's use in ./examples/offset_box.
Note that the "hollowing out" operation just occurs on the SDF. It has nothing to do with the source being an STL.

Pseudo code is something like:

s0 := ImportSTL("file.stl)
s1 = Offset3D(s0, thickness)
s2 := Difference3D(s0, s1)
Render(s2)

from sdfx.

Megidd avatar Megidd commented on May 15, 2024

Thanks @deadsy I'm going to try it. Probably I'll be back with some questions 🙂

from sdfx.

Megidd avatar Megidd commented on May 15, 2024

Conclusion

PR #54 introduces an example to carve out the inside of the input STL surface mesh. The corresponding comments of PR #54 should be noted.

So, steps 1 and 2 of this algorithm can be done by this package:

  1. Represent the original 3D surface mesh by signed distance field - SDF.
  2. Extract an internal iso-surface from SDF. It's inside the original surface mesh.
  3. Flip the normal vectors of the new internal iso-surface.
  4. Merge new internal iso-surface with the original external surface mesh.

Steps 3 and 4 are trivial.

from sdfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.