reducepatch command in Matlab

조회 수: 3 (최근 30일)
Huijuan Zhu
Huijuan Zhu 2021년 1월 7일
댓글: Srija Kethiri 2022년 5월 6일
Hi,
I need some help with the reducepatch command in matlab, i want to reduce the patch face size so I have a model with smaller file size.
Does anyone know how I can do it?
I tried to define p as patch (x,y,z,c) and put reducepatch(p, 0.15), but it did not work.
Thank you
  댓글 수: 1
Jan
Jan 2021년 1월 7일
Please mention, what "does not work" means. It is easier to help you, if the problem is clear.

댓글을 달려면 로그인하십시오.

답변 (1개)

Srija Kethiri
Srija Kethiri 2022년 5월 6일
편집: Srija Kethiri 2022년 5월 6일
It is my understanding that you have created a patch ‘p’ and want to reduce its faces.
As you are using the command reducepatch(p,0.15) it reduces the faces of your original figure to 15%.
To better understand the command, you can refer to the following documentation about reducepatch command:
To get more information about patch, you can refer to this document:
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 5월 6일
0.15 would not reduce "by" 15%, it would reduce to 15%
Srija Kethiri
Srija Kethiri 2022년 5월 6일
Sorry for the error, I have rectified it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by