how to find points inside a 3d delaunayTriangulation object?

1 Ansicht (letzte 30 Tage)
load('qs.mat')
figure; hold on
trisurf(K,s.Points(:,1),s.Points(:,2),s.Points(:,3),'FaceColor','none')
scatter3(x,y,z,20,'filled','k')
view(-30,10)

Akzeptierte Antwort

David Hill
David Hill am 2 Mär. 2022
p=pointLocation(s,[x,y,z]);
f=find(~isnan(p));%index of points (x,y,z) inside

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by