[vtkusers] VRMLExporter bug fix

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Mar 18 11:33:59 EST 2004


Commited in CVS, thank you Chris.

Christopher.Moore at noaa.gov wrote:
> If you use field data to color, VRMLExporter didn't pick up on it.
> 
> These few lines seem to fix it for me - I'm not sure how to submit a bug 
> fix:
> 
> In VRMLExporter.cxx (Revision 1.68, VTK 4.2), after line 301 
> (pm->SetScalarMode), add:
> 
>   if ( pm->GetScalarMode() == VTK_SCALAR_MODE_USE_POINT_FIELD_DATA ||
>        pm->GetScalarMode() == VTK_SCALAR_MODE_USE_CELL_FIELD_DATA )
>     {
>     if ( anActor->GetMapper()->GetArrayAccessMode() == VTK_GET_ARRAY_BY_ID )
>       {
>       pm->ColorByArrayComponent(anActor->GetMapper()->GetArrayId(),
> 				anActor->GetMapper()->GetArrayComponent());
>       }
>     else
>       {
>       pm->ColorByArrayComponent(anActor->GetMapper()->GetArrayName(),
> 				anActor->GetMapper()->GetArrayComponent());
>       }
>     }
> 
> 
> Glad to finally give something back,
> Chris
> 
> __________________________________________________________________
> Christopher Moore                email: Christopher.Moore at noaa.gov
> Research Scientist, Oceanography                 tel: 206.526.6779
> University of Washington/JISAO/NOAA-PMEL         fax: 206.526.6744
> ------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list