[vtkusers] white line

Philip Cook p.cook at cs.ucl.ac.uk
Tue Aug 13 08:08:14 EDT 2002


On Monday 12 August 2002 11:06 pm, vtkusers-request at public.kitware.com wrote:
> Message: 4
> Date: Mon, 12 Aug 2002 11:08:44 -0400
> From: Csaba Palotai <c0palo01 at louisville.edu>
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] white line
>
>
> --Apple-Mail-2--681883362
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain;
>         charset=US-ASCII;
>         format=flowed
>
> Hi all,
>
> I'm mapping a sphere (planet) to rectilinear coordinates (so I can take
> a look at the whole planet from one view) but it's kinda easy to get
> lost with directions. So I'm planning to add a white line to the
> northern side of the model which would help out. It's probably so easy
> to create this line that I couldn't figure out how to. Is it like the
> strips in the Arrays.cxx example? how can I make it white,  by saying
> actor->SetColor(1,0,0)  ? I so aint sure about this thing. Anyone can
> help out? my coordinates for the two endpoints (1,nj/2,0) and (1,nj,0).

To make a simple line, see vtkLineSource. 

Color is RGB, so SetColor(1,0,0) will give you a red line. Use SetColor(1,1,1) 
for white.




More information about the vtkusers mailing list