GithubHelp home page GithubHelp logo

Python bindings about manifold HOT 8 CLOSED

elalish avatar elalish commented on July 2, 2024
Python bindings

from manifold.

Comments (8)

pca006132 avatar pca006132 commented on July 2, 2024 1

Yes that should be simple to do. Will submit a PR tmr.

from manifold.

rsaccon avatar rsaccon commented on July 2, 2024 1

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.

pca006132 avatar pca006132 commented on July 2, 2024

Can you show the input for ls -la in the directory where you run the python script?

from manifold.

pca006132 avatar pca006132 commented on July 2, 2024

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:

  1. difference is not yet optimized with manifold set, still thinking about what is the best way to do that.
  2. 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.

elalish avatar elalish commented on July 2, 2024

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.

rsaccon avatar rsaccon commented on July 2, 2024

@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.

pca006132 avatar pca006132 commented on July 2, 2024

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.

rsaccon avatar rsaccon commented on July 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.