Antwort: vtkPolyData: changing line attributes
Patric.Weis at mycrona.de
Patric.Weis at mycrona.de
Thu May 4 03:19:08 EDT 2000
If you are using OpenGL you can set the width of the lines of an actor by
vtkActor->GetProperty()->SetLineWidth(...).
But I use vtkTubeFilter which produces a very good looking appearance of
the lines (e.g. .../graphics/examplesTcl/constrainedDelaunay.tcl).
Patric Weis
MYCRONA GmbH
- - - Original Message - - -
"Audrius Stundzia"
<adv_biologic at hotmail.c An: vtkusers at public.kitware.com
om> Kopie: advanced.biologic at sympatico.ca
Gesendet von: Thema: vtkPolyData: changing line attributes
owner-vtkusers at public.k
itware.com
03.05.00 16:10
Bitte antworten an
audrius
Hi fellow vtker's,
I think this is straightforward, but I haven't found a reference
on how to do it.
I've created a vtkPolyData object that is a grid of lines.
The code fragment is
//-----Loop over the lines
...
pointID = gridPoints->InsertNextPoint( firstEndPoint);
pointList[0] = pointID;
pointID = gridPoints->InsertNextPoint( secondEndPoint);
pointList[0] = pointID;
gridLines->InsertNextCell( 2, pointList );
...
gridPolyData->SetPoints( gridPoints);
gridPolyData->SetLines( gridLines);
....
What I would like to do is to set the thickness of the lines.
Any insight would be most appreciated.
Regards,
Audrius
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list