How to generate random holes in a 2D surface?

3 ビュー (過去 30 日間)
DINESH CHANDRA
DINESH CHANDRA 2016 年 8 月 16 日
コメント済み: DINESH CHANDRA 2016 年 8 月 16 日
1. Generation of a 2D surafce. 2. generation of random holes on 2D surface. 3. Extraction of co-ordinate of holes 4. Meshing of the 2D surface and extraction of node coordinates(if possible)

採用された回答

KSSV
KSSV 2016 年 8 月 16 日
  1 件のコメント
DINESH CHANDRA
DINESH CHANDRA 2016 年 8 月 16 日
Thanks for responding.......... Holes are in the shape of circles....

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 8 月 16 日
Create your surface as a matrix. Then create a mask of a bunch of circles using rand() to get locations and/.or radii and the circle FAQ. Then zero out the areas in the surface like this:
yourSurface(circleMask) = 0;

カテゴリ

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