sampling inside a mesh?

Feel free to ask any question here
Post Reply
cazou34
Posts: 1
Joined: Thu Apr 13, 2017 5:52 am

sampling inside a mesh?

Post by cazou34 »

Hi,
I am new here, PhD student in Australia, modelling rock-art shelters using photoscan and cloudcompare

i know how to sample points on a mesh but is there any possibility of sampling points INSIDE a mesh/volume?

If this tool doesn't exist in CC how could I do this somewhere else (matlab)

thks

GC
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: sampling inside a mesh?

Post by daniel »

Nope, this is not possible in CC. I don't know if other tools can do it out of the box, but I see several ways to do it:
- generate a grid of points (or a dense randomized cloud inside a box) and then use CC to compute the distances from this cloud to the mesh and eventually keep only the points 'inside' (i.e. with a negative distance)
- use a volume Delaunay mesh generator (e.g. Qhull, but there's probably one in Matlab). It will create tetrahedrons in which it should be rather easy to sample points inside
- hack the Poisson Surface Reconstruction plugin (or library) that gives you access to its internal distance map (computed from a point cloud --> but you can always sample a dense cloud on your mesh surface). Then do the same as in the first idea but doing this with PoissonRecon is probably more efficient / accurate (it's just harder to hack the code).
Daniel, CloudCompare admin
snfge
Posts: 72
Joined: Thu Nov 20, 2014 4:12 am

Re: sampling inside a mesh?

Post by snfge »

HI
I have a software can get the point inside mesh, but it not free.
Post Reply