Skip to content

docs - isosurface / isonormals #429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danton267 opened this issue Oct 20, 2021 · 1 comment
Closed

docs - isosurface / isonormals #429

danton267 opened this issue Oct 20, 2021 · 1 comment

Comments

@danton267
Copy link
Member

[x,y,z,v] = flow;
p = patch(isosurface(x,y,z,v,-3));
isonormals(x,y,z,v,p)
p.FaceColor = 'red';
p.EdgeColor = 'none';
daspect([1 1 1])
view(3); 
axis tight
camlight 
lighting gouraud

fig2plotly(gcf);

does not work

@gilbertogalvis
Copy link
Contributor

Daniel, you only need to set the optional parameter 'TreatAs' to 'isosurface'. Please check the following code

[x,y,z,v] = flow;
p = patch(isosurface(x,y,z,v,-3));
isonormals(x,y,z,v,p)
p.FaceColor = 'red';
p.EdgeColor = 'none';
daspect([1 1 1])
view(3); 
axis tight
camlight 
lighting gouraud

fig2plotly(gcf, 'TreatAs', 'isosurface');

Result looks as follow

Screen Shot 2021-10-22 at 4 22 09 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants