필터 지우기
필터 지우기

Translating a 3D shape

조회 수: 11 (최근 30일)
Jonathan Bird
Jonathan Bird 2018년 3월 23일
댓글: DGM 2021년 7월 26일
I have used the following code to generate a hemisphere and rotated it:
[x1,y1,z1]=sphere;
x1=x1(11:end,:);
y1=y1(11:end,:);
z1=z1(11:end,:);
r=10;
sf=surf(r.*x1,r.*y1,r.*z1);
rotate(sf,[1,0,0],90);
axis equal
Now I want to translate the shape to a new 3D position vector, I tried sf1=translate(sf,[0,100,0]); but this did not work.
  댓글 수: 2
Xu Xu
Xu Xu 2021년 7월 25일
Hi Jonathan, have you solved this problem?
DGM
DGM 2021년 7월 26일
This is a duplicate of this post, which has an accepted answer:

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by