Comments (3)
It happens when there duplicate vertices it seems.
facet normal nan nan nan
outer loop
vertex 0.000000e+00 0.000000e+00 -2.144183e+00
vertex 0.000000e+00 0.000000e+00 -2.144183e+00
vertex -5.000000e-01 8.660254e-01 -2.144183e+00
endloop
endfacet
which cause 0 normal vector.
Then there is
n = np.cross(v1 - v0, v2 - v0)
n /= np.linalg.norm(n)
in write_STL function, which causes the problem I think.
Is there a way to eliminate the duplicate vertices in meshmagick?
from meshmagick.
From what I can see on your last post, the triangle you show seems to be collapsed. Two of its vertices are at the same position so the triangle does not represent a plane but a line. You get NaN for the normal as it is undefined...
Maybe you could preprocess the mesh by using the -hm option to attempt to heal the mesh.
from meshmagick.
Hi @ahmedmetin
Did you resolve this issue? I am having the same problem currently. I tried to preprocess with heal_normals(), but I did not notice any changes in the resulting .stl file. I might be doing something wrong. Thank you. @frongere
from meshmagick.
Related Issues (20)
- mistake in the cog calculation with shell inertia HOT 10
- Test is failling on master branch HOT 2
- Converting - extension "dat" not found HOT 2
- Issue writing .DAT file (Diodore). HOT 1
- How to install for Python 3.7? HOT 1
- Python 3 implmentation and documentation HOT 2
- Hydrostatics for fully submerged body. HOT 4
- Getting Python error when calling meshmagick.hydrostatics.Hidrostatics() HOT 2
- Impossible to use CLI HOT 8
- ModuleNotFoundError: No module named 'meshmagick_cli' HOT 11
- conda/pip installation issues HOT 6
- Meshmagick not running with Anaconda HOT 2
- Meshmagick Hydrostatic Issue HOT 2
- load_GDF ValueError HOT 1
- Converting a mesh file HOT 7
- ModuleNotFoundError: No module named 'gmshparser' HOT 1
- Hydrostatic computations for submerged body
- Stiffness matrix and translation HOT 4
- gmsh v4 HOT 17
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 meshmagick.