フィルターのクリア

Mesh decimation of an area of interest

6 ビュー (過去 30 日間)
Maryam
Maryam 2023 年 7 月 11 日
回答済み: Nivedita 2023 年 8 月 28 日
I have a script that creates both a custom colormap highlighting an area of interest (grey) and then plotting this area using this code to make a patch in green. I want to preform mesh decimation only on the green plot and not on the whole figure on the colormap.
Plot the triangle
patch('Vertices', vertices, 'Faces', facesInRange(i, :), 'FaceColor', 'green');
end

回答 (1 件)

Nivedita
Nivedita 2023 年 8 月 28 日
Hi Maryam!
I understand that you are trying to perform mesh decimation only on the part of the green area created by the patch function in your code.
I would suggest storing this green patch in an object, let’s say “p”, and then passing “p” to the “reducepatch” function to perform the mesh decimation.
For more information on the patch function and how to store and access it as an object, refer to the following documentation page: https://www.mathworks.com/help/matlab/ref/patch.html#d124e1107225:~:text=the%20previous%20syntaxes.-,p%20%3D%20patch(,),-returns%20the%20patch
For more information on the “reducepatch” function, refer to the following documentation page:

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by