Code Monkey home page Code Monkey logo

Comments (3)

mikedh avatar mikedh commented on May 28, 2024

Yeah, the point contains test is quite slow, and without watertight meshes not going to tell you very much. Some ideas:

  1. If you have 2 watertight meshes you can use boolean intersection methods of the Trimesh objects (which uses blender or openSCAD as a backend). This is always going to be a bit slow as well, and can give wonky results from precision issues.

  2. You probably want an actual collision detection library- FCL is very popular and this python binding looks pretty interesting: https://github.com/jf---/python-fcl

from trimesh.

lorinma avatar lorinma commented on May 28, 2024

Thanks!
The python-fcl, which uses bvh, does the work very well.
It seems most of the collision test libs like bullet3 all use bvh.

from trimesh.

lorinma avatar lorinma commented on May 28, 2024

Btw, I've built a conda package for python-fcl.

If you use conda

you can easily install the python-fcl through:

conda config --add channels http://conda.anaconda.org/lorinma
conda install python-fcl=0.4.1

perhaps you can incorporate fcl into trimesh in this way.

from trimesh.

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.