Tilted circle in 3D mesh

5 ビュー (過去 30 日間)
Abhishek Saini
Abhishek Saini 2019 年 12 月 25 日
回答済み: Nikhil Sonavane 2020 年 1 月 30 日
I have 3D mesh set and I want to give semicurcular region a differnet value. I have done this for vertical semi circle (as shown in figure) but how to do it for tilted semi circle. the code for generating vertical semi circle is here.
dx=1e-4;
R= 4e-3*dx;
for x = 1:500
for y=1:500
for z= 1:500
model(x,y,z) = 6300;
if z>=(x-250).^2 + (z-500).^2 - R.^2 && y==250
model(x,y,z) = 300;
end
end
end
end
cirlce.JPG

回答 (1 件)

Nikhil Sonavane
Nikhil Sonavane 2020 年 1 月 30 日
You may to refer an already existing answer in MATLAB Answers in this regard.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by