フィルターのクリア

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 Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by