Draw 3D objects in MATLAB

3 ビュー (過去 30 日間)
SUSHMA MB
SUSHMA MB 2015 年 6 月 25 日
回答済み: Walter Roberson 2015 年 6 月 25 日
I want to draw 3D objects (like, rectangle, cone,etc) but of irregular shapes. The objects should be multiple in numbers (i.e., more than one object). How can i draw these objects and also fill it?

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 6 月 25 日
Use patch() to build the objects. If you want to be able to manipulate the multiple objects independently then use one patch() for each object; if you want them all to respond the same way (e.g., fixed positions relative to each other) then you can use patch() with disconnected regions.
3D objects cannot really be filled, but you can configure their face colors so that they cannot be seen into.

カテゴリ

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