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
Mike Garrity 2015년 5월 22일

0 개 추천

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.

카테고리

질문:

2015년 5월 21일

답변:

2015년 5월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by