Skip to content
Snippets Groups Projects
Commit 430052e9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent b262e885
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ xmin = View[0].MinX; xmax = View[0].MaxX; ...@@ -12,7 +12,7 @@ xmin = View[0].MinX; xmax = View[0].MaxX;
ymin = View[0].MinY; ymax = View[0].MaxY; ymin = View[0].MinY; ymax = View[0].MaxY;
zmin = View[0].MinZ; zmax = View[0].MaxZ; zmin = View[0].MinZ; zmax = View[0].MaxZ;
If(xslices) If(xslices && xmin != xmax)
For x In {xmin : xmax : (xmax-xmin) / (xslices > 1 ? (xslices-1) : 0.1)} For x In {xmin : xmax : (xmax-xmin) / (xslices > 1 ? (xslices-1) : 0.1)}
If(!regular) If(!regular)
Plugin(CutPlane).A = -1 ; Plugin(CutPlane).B = 0 ; Plugin(CutPlane).C = 0 ; Plugin(CutPlane).A = -1 ; Plugin(CutPlane).B = 0 ; Plugin(CutPlane).C = 0 ;
...@@ -27,7 +27,7 @@ If(xslices) ...@@ -27,7 +27,7 @@ If(xslices)
EndFor EndFor
EndIf EndIf
If(yslices) If(yslices && ymin != ymax)
For y In {ymin : ymax : (ymax-ymin) / (yslices > 1 ? (yslices-1) : 0.1)} For y In {ymin : ymax : (ymax-ymin) / (yslices > 1 ? (yslices-1) : 0.1)}
If(!regular) If(!regular)
Plugin(CutPlane).A = 0 ; Plugin(CutPlane).B = -1 ; Plugin(CutPlane).C = 0 ; Plugin(CutPlane).A = 0 ; Plugin(CutPlane).B = -1 ; Plugin(CutPlane).C = 0 ;
...@@ -42,7 +42,7 @@ If(yslices) ...@@ -42,7 +42,7 @@ If(yslices)
EndFor EndFor
EndIf EndIf
If(zslices) If(zslices && zmin != zmax)
For z In {zmin : zmax : (zmax-zmin) / (zslices > 1 ? (zslices-1) : 0.1)} For z In {zmin : zmax : (zmax-zmin) / (zslices > 1 ? (zslices-1) : 0.1)}
If(!regular) If(!regular)
Plugin(CutPlane).A = 0 ; Plugin(CutPlane).B = 0 ; Plugin(CutPlane).C = -1 ; Plugin(CutPlane).A = 0 ; Plugin(CutPlane).B = 0 ; Plugin(CutPlane).C = -1 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment