Comments (3)
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.
Thanks @deadsy I'm going to try it. Probably I'll be back with some questions 🙂
from sdfx.
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:
- Represent the original 3D surface mesh by signed distance field - SDF.
- Extract an internal iso-surface from SDF. It's inside the original surface mesh.
- Flip the normal vectors of the new internal iso-surface.
- Merge new internal iso-surface with the original external surface mesh.
Steps 3 and 4 are trivial.
from sdfx.
Related Issues (20)
- Zero length line segments ruin Polygon2D objects HOT 1
- obj/screw.go: NPT thread HOT 2
- Redesigning Vec family API HOT 8
- Removing returned errors from shape generation functions HOT 10
- Request to add pointer to `sdf` project HOT 2
- Bolts smaller than expected HOT 3
- Threads on package import HOT 4
- Gyroid shape HOT 1
- Feature Request: Extract Vertex Data to an Array HOT 2
- Pack models together tightly HOT 3
- How to duplicate SDF? HOT 5
- How to check if intersection is empty or not HOT 7
- Time consumption of marching cubes algorithm HOT 1
- Initialize a 4x4 matrix i.e. `sdf.M44` HOT 9
- Description Language idea.. HOT 3
- STL to SDF evaluation HOT 1
- Creating an arbitraty shape for a chain HOT 1
- Build error HOT 3
- Whether to support dxf file parsing? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdfx.