<div>Hello Goodwin,</div>
<div> </div>
<div> thank you very much for your suggestions. This is what I have tried:</div>
<div> </div>
<div>1) Call SetNumberOfComponents() before SetNumberOfTuples() => VTK Crashes</div>
<div> </div>
<div>2) Take vtkExtractGrid out of the pipeline => VTK Crashes</div>
<div> </div>
<div>3) Try using vtkPoints::Allocate() and vtkPoints::SetTuple3(): VTK crashes even before showing the 3D window: the problem is here, as you suggested in your point. I am unable to finish the call to SetTuple3 in a loop if the number of points is greater than 100 or something. I can finish the loop if I choose,
i.e., 50 points. I attach the example with SetTuple3 as "prova3.py" (using real simple grid data)</div>
<div> </div>
<div>4) I get the same runtime error from Windows if I simply use SetData() instead of SetTuple3() and Allocate(), if I choose more than 100 points. If I use 50 points, for example, I get the 3D window with a nice cube. I attach another example as "
prova4.py" with SetData() instead of SetTuple3() and Allocate().</div>
<div> </div>
<div>Probably I have made some mistake somewhere for the SetTuple3/Allocate example, but I am quite sure about the SetData() example. It is fantastically difficult to find examples of use of VTK in Python on the net...<br>
</div>
<div>For the samples I used Numpy instead of Numeric because Numpy is much more friendly in creating a 3D grid... I get the error message when I change the values for nx, ny, nz to bigger values.</div>
<div><br>Does anyone have some suggestion for me? It's really complicated to find out what the problem is when I get only a windows error message... at least a Python/VTK error messages would be much more useful...</div>
<div> </div>
<div>Thank you very much for your help and suggestions.</div>
<div> </div>
<div>Andrea.</div>
<div> </div>
<div> </div>
<div><font size="2"></font><br> </div>