How could I a draw circle on a 2D surface in 3D?
古いコメントを表示

I'd like to draw a circle on this surface around the red dot (see picture) enclosing an area where the energy is less than 2.5 kcal/mol. The surface is computed as follows:
p=patch(isosurface(X,Y,Z,W,0)); isonormals(X,Y,Z,W,p); isocolors(X,Y,Z,W,p);
Can I somehow extract the meshgrid data from this surface?
Thanks,
James
回答 (1 件)
Mike Garrity
2015 年 5 月 22 日
No, you probably don't want to try and force it into a quad mesh. If you look at your triangle mesh:
set(p,'EdgeColor','white')
You'll see that the triangulation that isosurface creates is pretty irregular. Anything you do to try to force it into a regular quad mesh is going to introduce errors.
I would suggest contouring your triangle mesh with this function that Duane Hanselman put on the File Exchange.
カテゴリ
ヘルプ センター および File Exchange で Scalar Volume Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!