Really really thank you for your #37 post and .blend file. They are both very fast. I guess Meshlab is 20 times faster or more than the script. In the previous version of the script, it became 13.5mins for 65K vertices as seen below processed on Blender 2.4x.
When it takes 13.5mins for 65K, it becomes 5.1mins for 25K, which is the same number of vertices as patmo141 tested at #37. However, it took more than 10mins on Blender 2.6x… Mmm, Blender Python API got a bit slower?
Anyway, the script is slow and I cannot believe that it gets 20 times faster if I rewrite the script into C++.
> are you going to try to implement the ball method for the algo
No, I’m not so far. But the ball method seems to be wonderful.
> don’t know if there is somehow a way to call a C function from python
It’s nice and the best way if someone creates a wrapper script for Blender to call Meshlab functions and make it possible to skin with Meshlab.
There has been discussion about boost python and ctypes etc. It’s all out of my league in terms of programming right now anyway If I had more time (or another lifetime) I would try and tackle it a little. But yeah, it would be very nice to just use Meshlab’s already compiled code and borrow functions from it…A topic for a different thread perhaps?
im not sure what triangle can do, i only use tetgen at the moment. with some options the surface as well as the internal structure can be “refined”. and with the tetgen code, nasty triangles can be avoided, so it was an idea that this could have some use for surface creations, maybe im wrong.
i tried some softbody physics yesterday with such a tetmesh and it behaved quite differently then an ordanary mesh with the default softbody settings.
here some stuff i recorded.
tetrahedron meshes are used for deformation simulations and some other physics stuff so this might be quite interresting for some people to have meshes with internal structure to play with instead of surface meshes.
i got it from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ then installed the correct meshpy package and copied the meshpy folder which got installed into the python libs into blender/scripts/modules. after that you can import the modules in blender.
here the link for the documentation: http://documen.tician.de/meshpy/
no external software is used, its all included in the meshpy package.
it installs python modules, search your python folder for meshpy. then copy that folder to bledners script/module folder so they get loaded with blender. you will need to write a small script to access its functionallity in blender. you can copy past the example on the documentation page into the text edito in blender and run it. that should give you some output in the console and you can see if it works.
then modify it to what you need/want it to do.
hm interresting, ive never seen this infinite element script, do you have a link for that?
and i think all these libs should be usable in blender as long as there is a py3.2 version:D
EDIT: maybe we should take this discussion to an other thresd since its gotten a bit offtopic. sorry for that