[vtkusers] problem for using vtkTubeFilter

Thomas Obenaus thomaso at eas.iis.fraunhofer.de
Fri Jan 23 04:28:52 EST 2009


Hello,
I had the same problem, but using vtkStripper wasn't enough. I also had to
use the vtkCleanPolyData-filter to remove duplicate points which created the
error in my case. Here is my pipeline:

/* create isolines  */
vtkContourFilter iso = new vtkContourFilter( );
iso.SetInput( data.get( i ) );
iso.GenerateValues( numberOfISOLines, rangeEntries.get( i ).getRange( ) );
iso.Update( );

/* connect the computed lines to cone polyline */
vtkStripper stripperFilter = new vtkStripper( );
stripperFilter.SetInput( iso.GetOutput( ) );
stripperFilter.Update( );

/* remove duplicates to avoid the "vtkTubeFilter can't create normals"
error*/
vtkCleanPolyData cleanFilter = new vtkCleanPolyData( );
cleanFilter.SetInput( stripperFilter.GetOutput( ) );
cleanFilter.Update( );

/* create tubes arround the lines */
vtkTubeFilter tubeFilter = new vtkTubeFilter( );
tubeFilter.SetInput( cleanFilter.GetOutput( ) );
tubeFilter.SetRadius( radius );
tubeFilter.Update( ); 

...mapper...actor


Bill Lorensen-2 wrote:
> 
> Try running your polydata through vtkStripper.
> 
> On Wed, Dec 17, 2008 at 8:22 AM, Luyece Power <luyecepower at yahoo.com>
> wrote:
>> Please help me!
>> When I used vtkTubeFilter to increase the thickness of curves, I got
>> following error message.
>>
>> ERROR: In .\vtkPolyLine.cxx, line 102
>> vtkPolyLine (01D0C4C0): Coincident points in polyline...can't compute
>> normals
>> Warning: In .\vtkTubeFilter.cxx, line 225
>> vtkTubeFilter (01C80CA0): Could not generate normals for line. Skipping
>> to
>> next.
>>
>> Anyone know how to solve this problem?
>>
>> Thank you.
>> Lu
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-for-using-vtkTubeFilter-tp21053018p21621199.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list