python interface to triangulate and tetrahedralize
use:
python setup.py develop
or
python -m pip install . -vv
to install
Python bindings for TriWild.
Home Page: https://wildmeshing.github.io/python/
License: Other
Here is an example mesh that causes a hard crash:
import wildmeshing as wm
tet = wm.Tetrahedralizer()
tet.load_mesh('testobj.obj')
tm = tet.get_tet_mesh()
The mesh is geometrically watertight, as demonstrated by using the summed projected areas:
import igl
import numpy as np
V, _, _, F, _, _ = igl.read_obj('testobj.obj')
areas = igl.doublearea(V, F)
N = igl.per_face_normals(V, F, np.array([np.inf, np.inf, np.inf], dtype=np.float64))
max([abs((areas * N[:,i]).sum()) for i in range(3)])
Gives 2.168404344971009e-19, which I assume is close enough to 0.
What preprocessing, if any, can I do to ensure that the input mesh does not cause a crash?
Hello,
I have two tetrahedral meshes: a complex object and a box. I would like to remove half of the complex object by subtracting the box. Is it possible to do that? In the example notebook it seems that only triangular meshes can be used as input...
Thank you!
I would appreciate it if you could provide wildmeshing installer in the python 3.10 environment.
After running the recommended install command I receive the following error:
In [1]: import wildmeshing as wm
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-8703ac452926> in <module>
----> 1 import wildmeshing as wm
~/.local/lib/python3.9/site-packages/wildmeshing/__init__.py in <module>
4 from .wildmeshing import boolean_operation
5 from .wildmeshing import Tetrahedralizer
----> 6 from .triangulate_svg import triangulate_svg
~/.local/lib/python3.9/site-packages/wildmeshing/triangulate_svg.py in <module>
1 import json
2 import math
----> 3 import wildmeshing.parse_svg.svgpathtools as svg
4 import numpy as np
5
ModuleNotFoundError: No module named 'wildmeshing.parse_svg'
I can not quite find the background mesh functionality in the python version?
Is this functionality planned to be added?
I tried to use the conda install wildmeshing on my M1 Mac(conda install wildmeshing
), but could not succeed.
The error as following text:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Hello,
Does wildmeshing support the ability to constrain the size of the tetrahedral elements generated? In tetgen, for example, you can do this via the "a" flag. I see the notion of sizing_field
s in the C++ code, but I am unsure how those may apply here as they are, unfortunately, not documented in the python code.
My main motivation for this is to limit the volume of geometry generated to allow my simulation to run faster when I am debugging, etc.
I would greatly appreciate any guidance.
Hi,
currently, the main branch of the repo is newer than the conda version since there is no release with the latest changes. Could you please publish a new release? Thank you!
Marius
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.