Comments (8)
Yes that should be simple to do. Will submit a PR tmr.
from manifold.
Ok, checked out the opt
branch and all just magically worked ! With very simple Python commands I can create and manipulate manifolds. This is totally awesome !
from manifold.
Can you show the input for ls -la
in the directory where you run the python script?
from manifold.
btw, I thought I was the only one who uses my fork, so I do things like rebase and force push quite frequently, sorry if that annoys you. I planned to upstream the python changes, but there are still a few blockers:
- difference is not yet optimized with manifold set, still thinking about what is the best way to do that.
- the performance optimization in manifold set often triggers weird errors like #102 and #109 when I try to port some benchmarks from https://gist.github.com/ochafik/2db96400e3c1f73558fcede990b8a355 for testing.
For now maybe you can try to use this branch, I will try to keep it stable and avoid force pushing to it.
from manifold.
I would love to have python bindings; could we work on upstreaming that before dealing with the manifold set issues? Would be great to have Python building and testing in the CI.
from manifold.
@pca006132 here the ls -la
(base) robertosaccon@MacBook-Pro manifold % ls -al
total 368
drwxr-xr-x 32 robertosaccon staff 1024 11 May 16:54 .
drwxr-xr-x 21 robertosaccon staff 672 11 May 16:48 ..
-rw-r--r--@ 1 robertosaccon staff 6148 11 May 09:22 .DS_Store
drwxr-xr-x 3 robertosaccon staff 96 10 May 22:51 .devcontainer
-rw-r--r-- 1 robertosaccon staff 308 10 May 22:51 .dockerignore
drwxr-xr-x 16 robertosaccon staff 512 11 May 17:16 .git
drwxr-xr-x 3 robertosaccon staff 96 10 May 22:51 .github
-rw-r--r-- 1 robertosaccon staff 1519 10 May 22:51 .gitignore
-rw-r--r-- 1 robertosaccon staff 409 10 May 22:51 .gitmodules
drwxr-xr-x 5 robertosaccon staff 160 10 May 22:51 .vscode
-rw-r--r-- 1 robertosaccon staff 2648 11 May 09:26 CMakeLists.txt
-rw-r--r-- 1 robertosaccon staff 566 10 May 22:51 Dockerfile
-rw-r--r-- 1 robertosaccon staff 112798 10 May 22:51 Doxyfile
-rw-r--r-- 1 robertosaccon staff 11357 10 May 22:51 LICENSE
-rw-r--r-- 1 robertosaccon staff 4647 10 May 22:51 README.md
-rw-r--r-- 1 robertosaccon staff 601 10 May 22:51 assimp.diff
drwxr-xr-x 16 robertosaccon staff 512 11 May 09:33 build
drwxr-xr-x 5 robertosaccon staff 160 10 May 22:51 collider
-rwxr-xr-x 1 robertosaccon staff 1555 10 May 22:51 deploy.sh
-rw-r--r-- 1 robertosaccon staff 115 10 May 22:51 docker-compose.debug.yml
-rw-r--r-- 1 robertosaccon staff 71 10 May 22:51 docker-compose.yml
drwxr-xr-x 5 robertosaccon staff 160 10 May 22:51 docs
drwxr-xr-x 5 robertosaccon staff 160 11 May 02:57 manifold
drwxr-xr-x 5 robertosaccon staff 160 10 May 22:51 meshIO
drwxr-xr-x 5 robertosaccon staff 160 10 May 22:51 polygon
lrwxr-xr-x 1 robertosaccon staff 43 11 May 10:22 pythonTest -> build/tools/pythonTest.cpython-38-darwin.so
drwxr-xr-x 6 robertosaccon staff 192 10 May 22:51 samples
drwxr-xr-x 9 robertosaccon staff 288 10 May 22:51 test
-rw-r--r-- 1 robertosaccon staff 8072 11 May 10:47 test.py
drwxr-xr-x 9 robertosaccon staff 288 11 May 09:22 third_party
drwxr-xr-x 8 robertosaccon staff 256 11 May 02:57 tools
drwxr-xr-x 4 robertosaccon staff 128 10 May 22:51 utilities
from manifold.
The file name should be pythonTest.so
instead of pythonTest
. Btw be careful with the content of the test.py, it will generate a pretty large model.
from manifold.
@pca006132 Oh yeah, that was it, thanks a lot. It doesn't fully work yet, but I will base my further experimenting on the opt
branch your suggested.
from manifold.
Related Issues (20)
- 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
- memory leak when TBB and PSTL is enabled HOT 27
- Triangulate bug: Two separate polygons HOT 5
- [Question] robust geometric predicates, polygon triangulation
- Warning comparison of integer expressions of different signedness
- Modularize Manifold HOT 17
- Build without exceptions HOT 1
- Remove Thrust HOT 19
- How to figure out required size of mem in the C-API? HOT 1
- Crash in Project() HOT 4
- gcc14 build failure HOT 7
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.