[vtkusers] colors when reading an STL file
R K Shyamprakash
ramakrishna.prakash at quest-global.com
Tue May 13 09:44:02 EDT 2003
Hi,
STL format does not store any color information. it stores only vertex and
surface normal details. so you can not expect to get the same color as you
load the file. if you set
vtkSTLReader->ScalarTagsOn() then vtk will assign color depending on the
scalar value.
regards
shyam
-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Matthew Kong
Sent: Tuesday, May 13, 2003 7:35 AM
To: vtkusers at public.kitware.com
Subject: [vtkusers] colors when reading an STL file
Hey All,
Im using the vtkStlReader to read in a frame model from a 3d modeller. The
color of the model was supposed to be yellow when i drew it, but when i read
in
the file, its grey. Is there some way to color the model that is read in?
Matthew Kong
Australian Centre for Field Robotics
A Key Centre of Teaching and Research
The Rose Street Building J04
The University of Sydney 2006 NSW Australia
-------------------------------------------------
This mail sent through IMP: www-mail.usyd.edu.au
_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list