[vtkusers] About contour VTK C++
Hans van Piggelen
hansvp at hotmail.com
Fri May 9 07:51:36 EDT 2008
You can use vtkGeometryFilter, followed by a vtkPolyDataMapper, add it to an vtkActor and display it in the renderer:
vtkGeometryFilter *vGeomFilter = vtkGeometryFilter::New();vGeomFilter->SetInput( pl3d->GetOutput() );vGeomFilter->Update();vtkPolyDataMapper *vContourMapper = vtkPolyDataMapper::New();vContourMapper->SetInput( vGeomFilter->GetOutput() );vContourMapper->ScalarVisibilityOff();
vtkActor *vContourActor = vtkActor::New();vContourActor->SetMapper( vContourMapper );vContourActor->GetProperty()->SetColor(1,1,1); // whitevContourActor->GetProperty()->SetOpacity(0.7); // somewhat transparent
render->AddActor( vContourActor );
Or something similar of course.
From: zgut at itc.pw.edu.pl
To: vtkusers at vtk.org
Date: Fri, 9 May 2008 10:38:08 +0200
Subject: [vtkusers] About contour VTK C++
Hi
I am new user in VTK so I have problem to
solve.
I am using unstructured grid data:
vtkUnstructuredGridReader *pl3d =
vtkUnstructuredGridReader::New();
pl3d->SetFileName(VTK_DATA_ROOT
"der.vtk");
pl3d->SetScalarsName("scalars");
pl3d->Update();
It's OK.
But I would like to show only contour this
object (outside wall-cell).
Regards
Antoni
zgut at itc.pw.edu.pl
_________________________________________________________________
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080509/7ee0c9dc/attachment.htm>
More information about the vtkusers
mailing list