Comments (4)
I just managed to get my local build working, tested the modified binding, @zalo Split
works now as expected, thanks.
from manifold.
Ah yeah, nanobind doesn't like that it returns an std::pair...
It would have to be replaced with something like:
.def("split", [](Manifold &self, Manifold& cutter) {
auto p = self.Split(cutter);
return nb::make_tuple(p.first, p.second);
},
nb::arg("cutter"),
"Split cuts this manifold in two using the cutter manifold. The "
"first result is the intersection, second is the difference. This "
"is more efficient than doing them separately."
"\n\n"
":param cutter: This is the manifold to cut by.")
Having trouble getting Manifold built on my machine or I'd test this and make a PR...
from manifold.
I also tried to build locally on my old intel mac, finally was able to build, but my attempt to use the local built bindings (the not yet modified ones) failed, so many things can go wrong, well, I guess I have to wait for the next pipy release for this Split() binding to work ...
from manifold.
If a version of this PR #593 works, you might be able to extract a working version of the Python wheel from the Github Actions build.
from manifold.
Related Issues (20)
- triangulator optimization HOT 10
- Python API: batch_hull fails bizarrely HOT 9
- CMake silently downloads Thrust HOT 3
- API Documentation link in README does not exist HOT 2
- GetMesh core dump with SparseIndices too large HOT 16
- better error handling
- Properly handle negative volume meshes HOT 3
- how to properly use runOrigialID
- Better documentation for FillRule HOT 18
- Using Manifold-3d npm package from node? HOT 3
- wasm build problem 'Failed to resolve import "./built/manifold"' HOT 7
- mesh size approximation HOT 21
- Wrong pkg-config package name for Clipper2 dependency HOT 2
- Python created object reports as non-manifold. HOT 3
- Watertightness of Mesh with an Edge Shared by 4 Faces
- vertex halfedge iterator
- Manifold 2.4.5 release tar.gz is incomplete HOT 3
- Vec out of Range HOT 8
- Python binding needs two import call HOT 4
- Manifold Decompose doesn't preserve vertex properties HOT 4
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 manifold.