Dear mayavi users,
I would like to use `data_set_clip` in order to remove everything outside a
bounding box after points3d plot.
I have try, this example
```
t = np.linspace(0, 1, 5)
x = np.cos(t)
y = np.sin(t)
z = t
s = mlab.points3d(x, y, z)
clip = mlab.pipeline.data_set_clipper(s)
mlab.show()
```
and I get:
2020-11-12 10:16:11.218 ( 1,426s) [ A0CF5700]
vtkPolyData.cxx:961 ERR| vtkPolyData (0x562c090b1340): Error while
constructing cell map: Invalid cell size for polys.
All tried examples from mlab.test_* run without problem. Have you an idea on
where I am wrong ?
It seems to be linked to `points3d`, since
```
x, y = np.meshgrid(np.linspace(0,1, 20),
np.linspace(0,1, 20))
z = x*x + y*y
s = mlab.mesh(x, y, z)
clip = mlab.pipeline.data_set_clipper(s)
```
draw, the clip box without error, although the clip is not done...
I have a fresh mayavi install from conda
mayavi 4.7.2,
vtk 9.0.1
python 3.7,
ubuntu 16.04
and I use
export MESA_GL_VERSION_OVERRIDE=3.2
Thanks,
Benoit
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users