Comments (2)
Hi,
The simplest solution to try first is to combine the cylinder and the cube into a single mesh file and input it to fTetWild (using --input
only would work). The interface of the cylinder and the cube would be preserved by the algorithm. To separate the output tets for the two objects, you can check if the centers of the tets inside certain object.
from ftetwild.
Thank you very much Yixin
this is exactly the solution I adopted some days ago: indeed I was writing for sharing it: Some details:
- the two - initially separated, distinct - solids (step file) are loaded into a viewer using an OpenCascade step reader
- a non-manifold solid is created using the BOPAlgo_Builder class. In the resulting non-maniforld the base of the cylinder is a shared face
- the triangulation of the composite solid is created using an OpenCascade class (BRepMesh_IncrementalMesh)
- fTwtWild creates the tetrahedralization of the triangle soup (in the example I posted the soup is a watertight triangulation)
- the barycenter of each tetrahedron is computed,: a tetrahedron "belongs" to a solid if the winding number of its center of mass, with respect to the triangulation of that solid, is greater than, say 0.5 (for problematic, non watertight, triangulations)
I attach a picture of a results, with a mesh refinement also applied to one face and a segment.
Grazie mille
Giovanni
from ftetwild.
Related Issues (20)
- How can we collapse non-manifold edge when preprocessing?
- GMP dependency HOT 2
- Bug in preprocessing: holes appears after mesh simplification HOT 5
- A error when generating FloatTetwild_bin in Visual Studio HOT 1
- Is it possible to make the output mesh hollow? HOT 1
- Surface information output HOT 1
- Triangulating a 3d polygon HOT 1
- preserve stl surface solids? HOT 2
- build fails on gcc13
- FloatTetwild_bin.exe not built after running cmake HOT 7
- fTetWild not fully uses all CPU cores
- gmp issue
- mesh sizing function
- output seems error when input an multi-material surface mesh(diffirent material share an interior face) HOT 1
- .
- fTetWild seems to produce non-deterministic results
- Second Order
- Any attempt to build a web assembly version ?
- segfault during preprocessing (swapping) HOT 1
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 ftetwild.