mhogg / pyoctree

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

C++ example usage #54

Open esuig opened 1 year ago

esuig commented 1 year ago

Hello,

really an interesting and nice library to easily be able creating octrees!

Do you have any example to use the library directly from C++ (that is using the functions in cOctree.h)?

I think I should instantiate a cOctree object passing to it the coords of the vertexes and the connectivity of the triangles, right? Just to be sure, vertex coords are given in vector<vector > _vertexCoords3D where each vector contains the 3 coords of a vertex, right? and then in vector<vector > _polyConnectivity each vector contain the 3 indexes that define a triangle, right?

Thank you very much