Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 199
    • Merge requests 199
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #2907
Closed
Open
Created Feb 21, 2006 by Kitware Robot@kwrobotOwner

VtkExporter of ContourFilter PolyData does not export colors

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


I build a Vtk pipeline containing a vtkContourFilter containing 11 values and a color LUT scaled to the range of the input data. But, in my output '.OBJ' file, or '.IV' I see one color -- WHITE.

I export the vtkContourFilter output Wavefront '.OBJ' as follows:

vtkOBJExporter objxport objxport SetInput renWin objxport SetFilePrefix $outFilePrefix objxport Write

When I add: renWin Render I see a nice picture of my rainbow-colored set of iso-surfaces

vtkOBJExporter also exports a $outFilePrefix.mtl file, containing rendering attributes for the polygon geometry stored in the $outFilePrefix.obj file I am expecting, in my output $outFilePrefix.mtl, I see:

wavefront mtl file written by the visualization toolkit

newmtl mtl1 Ka 1 1 1 Kd 1 1 1 Ks 1 1 1 Ns 1 Tf 0.4 0.4 0.4 illum 3

I see one material with opacity 0.6, as I specified, but -- WHITE. In $outFilePrefix.obj, there is one group, g grp1 and one material reference, usemtl mtl1.

I see similar results using vtkIVExporter.

Thank you!

Assignee
Assign to
Time tracking