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
sampling inside a mesh?
Re: sampling inside a mesh?
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).
- 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
Re: sampling inside a mesh?
HI
I have a software can get the point inside mesh, but it not free.
I have a software can get the point inside mesh, but it not free.