docs - isosurface / isonormals
danton267 opened this issue · 1 comments
danton267 commented
[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 commented
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
