colored mesh after scatter3 command

1 vue (au cours des 30 derniers jours)
Alberto Acri
Alberto Acri le 14 Déc 2020
Commenté : KSSV le 15 Déc 2020
I have the following script where with the command "scatter3" I obtain a figure present in "object_analysis.txt" where in correspondence of the nodes I have a determined color (that varies for all the nodes of the object).
A(:,:)=load('object_an.txt');
figure
scatter3(A(:,1),A(:,2),A(:,3), 6, A(:,5:7)./255, 'filled');
grid on
axis equal
I would like to bring back the mesh (triangular elements) of this element "object" so that on the surface you can see the color variation set previously.
  3 commentaires
Alberto Acri
Alberto Acri le 14 Déc 2020
I want to bring back the mesh that has the color variation obtained from the dots.
Image Analyst
Image Analyst le 14 Déc 2020
Bring back WHAT mesh? Did one ever exist yet? Still not sure what you mean. Plus have have the color variation. It's in the markerColors matrix I created from columns 5-7.
Did you every try out KSSV's suggestion?

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 14 Déc 2020
  6 commentaires
Alberto Acri
Alberto Acri le 15 Déc 2020
Really? But where should I look? There are many files inside.
KSSV
KSSV le 15 Déc 2020
Read the documentation of delaunayTriangulation. This is pretty striaght. If you want to use the package, read the introduction part shown in the file mesh2d. There are few example, which will work out for your case.
There are also demo files which you can striaght away run and learn.

Connectez-vous pour commenter.

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by