enthought / enthought/mayavi

Lots of warnings when drawing multiple lines

Open
#527 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

I am using python 3.5 and mayavi 4.5.0 + vtk 7.1 (mayavi‑4.5.0+vtk71‑cp35‑cp35m‑win_amd64.whl downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mayavi), and I ran into a problem.

I tried to run the draw-many-lines example given by the official documentation, but gets a lot of warnings in the vtkOutputWindow. The lines will be drawn eventually, but it is very slow because you have to wait until all warnings are printed.

How to fix this? Thanks.

The code is here:
http://docs.enthought.com/mayavi/mayavi/auto/example_plotting_many_lines.html

And the warnings looks like this:
....
Warning: In D:\Build\VTK\VTK-7.1.1\Common\DataModel\vtkPolyData.cxx, line 1023
vtkPolyData (00000150D4F16FE0): Building VTK_TRIANGLE 482 with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.

Warning: In D:\Build\VTK\VTK-7.1.1\Common\DataModel\vtkPolyData.cxx, line 1023
vtkPolyData (00000150D4F16FE0): Building VTK_TRIANGLE 483 with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.

Warning: In D:\Build\VTK\VTK-7.1.1\Common\DataModel\vtkPolyData.cxx, line 1023
vtkPolyData (00000150D4F16FE0): Building VTK_TRIANGLE 484 with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.

Warning: In D:\Build\VTK\VTK-7.1.1\Common\DataModel\vtkPolyData.cxx, line 1023
vtkPolyData (00000150D4F16FE0): Building VTK_TRIANGLE 485 with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.

Warning: In D:\Build\VTK\VTK-7.1.1\Common\DataModel\vtkPolyData.cxx, line 1023
vtkPolyData (00000150D4F16FE0): Building VTK_TRIANGLE 486 with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.
....

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.