[vtkusers] Why triangle not appear
Ali Habib
ali.mahmoud.habib at gmail.com
Sun Dec 20 16:43:09 EST 2009
Dear All,
why vtktraingle, vtkstripper or vtkdatasettrianglefilter, not give any
effect , by another meaning it not give effect by divide the volume to
triangles and display it
I used many of the above filters and the output is the same without applying
them
I read dicom and apply marchingcube then one of those filters some of the
codes I used, and the output attached , how to make them be displayed
vtkMarchingCubes skinExtractor = vtkMarchingCubes::New();
skinExtractor->GetOutput()->ReleaseDataFlagOff();
skinExtractor->SetInputConnection(VIG->GetOutputPort());
skinExtractor->SetValue(0, 500);
skinExtractor->ComputeGradientsOn();
skinExtractor->Update();
vtkTriangleFilter VTF = vtkTriangleFilter::New();
VTF->SetInputConnection(skinExtractor->GetOutputPort());
VTF->GetOutput()->ReleaseDataFlagOff();
VTF->Update();
// Create Mapper
vtkDataSetMapper skinMapper = vtkDataSetMapper::New();
skinMapper->SetInputConnection(stripper->GetOutputPort());
this link contain the DICOM data I read
http://www.zshare.net/download/70028018a25537e6/
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091220/cc9fccf7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.jpg
Type: image/jpeg
Size: 69410 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091220/cc9fccf7/attachment.jpg>
More information about the vtkusers
mailing list