View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000687 | VTK | (No Category) | public | 2004-03-18 11:30 | 2004-03-18 11:37 | ||||
Reporter | Mathieu Malaterre | ||||||||
Assigned To | Mathieu Malaterre | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000687: VRMLExporter bug fix | ||||||||
Description | 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 | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | vrml.patch [^] (1,131 bytes) 1969-12-31 19:00 [Show Content] | ||||||||
Relationships | |
Relationships |
Notes | |
(0000778) Mathieu Malaterre (developer) 2004-03-18 11:30 |
Attaching patch from Christopher Moore. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |