plotly/plotly_matlab

docs - isosurface / isonormals

danton267 opened this issue · 1 comments

[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

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