Comments (1)
The code would need adaptation for this. The reason is that the current implementation works by picking a starting triangle and then explores neighbouring triangles that are intersected by the cut plane. For each intersected triangle, it then computes the 'triangle-plane' intersection (either a node or a line), appends this to a list and moves on. So it doesn't visit all triangles and therefore it doesn't have a notion of the both halves.
I am not sure what would be the best algorithm to extract both halves. One naive approach would be to compute the signed distance to the cut plane for each triangle and you can then easily split them in two groups (below and above). The difficulty is then in closing the two parts so they are manifold. I think mesh closing can be a somewhat hairy issue, but maybe you could use something like cgal to close the mesh.
from meshcut.
Related Issues (15)
- cross section HOT 6
- How to get slice as polygon HOT 4
- Holes not sliced properly? HOT 1
- Decrease number of dependencies needed to parse STL files HOT 2
- Can't slice binary PLY files HOT 2
- Bad slicing for some planes HOT 14
- Make meshcut compatible with Python 3 HOT 4
- numpy MemoryError
- cutting orthogonal to tubes ends up with two non connected polygons HOT 2
- ? HOT 1
- Wall thickness evaluation HOT 1
- Missing line segment after slicing non-manifold mesh HOT 2
- Use tox for multi-python tests
- Release 0.3.0 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 meshcut.