Comments (4)
Hi Charles,
Could you share the input and the command you used?
Thanks,
Yixin
from tetwild.
Hi Yixin,
I ran a command like
./TetWild --input input.stl --bg-mesh bg_mesh.msh.
I did some more investigating since my background mesh MSH file is in ASCII format and I was able to see that no mesh information was in that file... it was basically a "postprocessed view" file. I am using a libMesh GMSH read/write object to output the background mesh with the element sizes and I guess the mesh information was left out of the write command.
I then opened this postprocessed MSH file in GMSH and reexported it with the mesh information. With this workflow it seems to store both mesh info and the "values" field, but in ElementNodeData format. It seems like this is not currently supported with TetWild. Maybe it is possible to force GMSH to export the values field in NodeData format instead? I am not a heavy user of GMSH so I am not sure.
I can write a parser to try and convert this ElementNodeData to NodeData (which I think is what I need, correct?), or is it possible that ElementNodeData might be supported in the near future?
I am happy to share my input files as well... can I send them to you over email?
-- Charles
from tetwild.
another way to ask my question is... what exactly is the MSH format required for the background mesh, and what things should be in that file? for example, if I open the background mesh in your example and reexport in ASCII format, the ASCII background mesh file does not work with TetWild. an error is thrown that $Entities is not supported.
from tetwild.
Hi Charles,
You can try to use pymesh (https://github.com/PyMesh/PyMesh/blob/main/src/IO/MshSaver.h) to read/write gmsh file. Here is a piece of sample code:
Lines 54 to 62 in 1c75f7d
save_elem_scalar_field
save a value field for tetrahedra.
Hope this hepls,
Yixin
from tetwild.
Related Issues (20)
- Building on Win 10 with Visual Studio 2017 HOT 1
- Mesh Rendering
- Compilation on M1 Mac HOT 2
- 论文《Tetrahedral Meshing in the Wild》和对应程序学习请教 HOT 2
- Sizing Field HOT 1
- Abnormal program termination: received signal 11 (Segmentation fault) HOT 7
- Function wrapper issue on Ubuntu HOT 1
- Tetrahedral mesh include surface points? HOT 1
- Exactly preserve the polyhedron boundary? HOT 1
- Tetwild terminating abnormally when background mesh is specified
- Stuck when installing
- Uses two versions of mesh_AABB header and source file each, at the same time (!) - please rename at least and clarify HOT 1
- multi-material meshing with shared faces HOT 2
- How can I generate a mesh only between two sulfaces? HOT 1
- Mapping input triangle faces to output sufaces of tetrahedrals HOT 1
- is this repo maintained HOT 2
- TetWild on Windows - just not working HOT 1
- Need just a surface mesh HOT 1
- output seems error when input an multi-material surface mesh(diffirent material share an interior face) 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 tetwild.