mhogg / pyoctree

Octree structure containing a 3D triangular mesh model
MIT License
86 stars 19 forks source link

c++ version of PyOctree #35

Open DavideBassano opened 5 years ago

DavideBassano commented 5 years ago

Dear Michael,

I'm currently using your Pyoctree package in my Python code.

Now I'd like to write a C++ version of my code (because of parallelization with Cuda). Are cOctree.cpp and cOctree.h enough to calculate the intersection between a stl and a ray in a C++ code? Or I need some other files?

Thanks, Cheers,

Davide

mhogg commented 5 years ago

Hi Davide,

Yes, all the calculations (tree construction, intersections etc.) are done in cOctree.h and cOctree.cpp.

Cheers, Michael

DavideBassano commented 5 years ago

HI Michael,

thanks for your reply.

Do you have any example about using your cOctree classes to calculate intersection between stl and a ray? (like this https://github.com/mhogg/pyoctree/blob/master/pyoctree/Examples/pyoctree-intersection.ipynb).

Thanks, cheers,

Davide