how to find points inside a 3d delaunayTriangulation object?

2 vues (au cours des 30 derniers jours)
Philippe Corner
Philippe Corner le 2 Mar 2022
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)

Réponse acceptée

David Hill
David Hill le 2 Mar 2022
p=pointLocation(s,[x,y,z]);
f=find(~isnan(p));%index of points (x,y,z) inside
  1 commentaire
Philippe Corner
Philippe Corner le 2 Mar 2022
Thanks a lot, I did not know pointLocation function

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by