[vtkusers] GetCellPoints
Patrick Lowry
plowry.tx at verizon.net
Sat Jan 12 00:35:17 EST 2008
VTK Users,
I would like to be able to choose a specific connected polygon region
based on its scalar value. I am using vtkCellPicker to pick a cell
on a polygon generated from the connectivity filter to get the
cellid. I would then like to get the point ids so that I can get the
scalar value and then use that with the connectivity filter again to
select the specific region. I am coding in Tcl/Tk. Following is an
extract of the code. I suspect it is simple syntax but I can't
figure it out. Any help would be appreciated.
Thanks,
Patrick
vtkConnectivityFilter connect
connect SetInput [thresh GetOutput]
connect SetExtractionModeToAllRegions
connect ColorRegionsOn
connect Update
vtkGeometryFilter geomFilt
geomFilt SetInput [connect GetOutput]
.
.
.
vtkCellPicker picker
picker SetEndPickMethod annotatePick
proc annotatePick {} {
set cellid [picker GetCellId]
set connscal [[geomFilt GetOutput] GetCellPoints $cellid] ; #
Wrong syntax?!!!
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080111/c7c941f5/attachment.htm>
More information about the vtkusers
mailing list