[vtkusers] Problem: vtkcontourfilter and vtkcelllocator
Luke Hua
luke_qz at yahoo.com
Thu Oct 30 09:44:07 EST 2003
I solved the prob. myself yesterday. I should update the pipeline first.
Sorry for not reading the document more carefully!
Luke
Luke Hua <luke_qz at yahoo.com> wrote:I tried to set the output of vtkContourFilter to vtkCellLocator, but got error "No cells to subdivide". I checked the source it seams the output dataset vtkContourFilter has 0 number of cells. What's wrong?
this->cont=vtkContourFilter::New();
cont->SetInput(vol);
cont->SetValue(0,30);
cont->SetNumberOfContours(1);
vtkCellLocator *cellLocator = vtkCellLocator::New();
cellLocator->SetDataSet(cont->GetOutput());
cellLocator->BuildLocator();
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031030/721c3007/attachment.htm>
More information about the vtkusers
mailing list