HI,

I have a 3D object whose shape is irregular. Shape of object can be both convex or non convex type. The shape of object is defined by triangulated mesh. So, I have the vertex and edge information of the triangle from marching cube. I can also get the axis aligned bounding box of this object. Now I have to generate random points inside this object.

People suggested a technique called ray intersect triangle where a ray has to pass through in space and then find whether it intersect with triangle or not.

I have around 200,000 number of triangles and around 8 billion grid points at grid spacing of 1.

So if i go for all grid points to check whether grid points inside or outside then I need to do 200,000 x 8 billion number of operations.

Which is very lengthy to do.

What is your suggestion for me? How to check efficient and optimise way to whether any grid point is inside or outside of an object.

Thanks. Any suggestion are welcome.

More Ankit Agrawal's questions See All
Similar questions and discussions