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 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!