View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000687VTK(No Category)public2004-03-18 11:302004-03-18 11:37
ReporterMathieu Malaterre 
Assigned ToMathieu Malaterre 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000687: VRMLExporter bug fix
DescriptionIf 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
TagsNo tags attached.
Project
Type
Attached Filespatch file icon vrml.patch [^] (1,131 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0000778)
Mathieu Malaterre (developer)
2004-03-18 11:30

Attaching patch from Christopher Moore.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team