Page 1 of 1
sampling inside a mesh?
Posted: Thu Apr 13, 2017 5:56 am
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
Re: sampling inside a mesh?
Posted: Thu Apr 13, 2017 6:47 am
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).
Re: sampling inside a mesh?
Posted: Sun Apr 16, 2017 1:56 am
by snfge
HI
I have a software can get the point inside mesh, but it not free.