I have a Brain MRI dataset which I cut into halp using a clipPolyData Class.<br> Since I cut off from the medial plane. THere is a hole where the cut is made and I can look in the interior. I want to fill up this hole with a fake surface.<br> <br> What will be the best method to do that ..<br> <br> Currently I am trying to do this . But I doesnt work for me.<br> <br> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="Generator" content="Kate, the KDE Advanced Text Editor"> <pre>vtkPolyDataNormals *normals = vtkPolyDataNormals::New(); normals->SetInput(leftMRI); vtkClipPolyData *clipData = vtkClipPolyData::New(); clipData->SetInput(normals->GetOutput()); clipData->SetClipFunction(yzPlane); clipData->GenerateClipScalarsOn(); clipData->GenerateClippedOutputOn(); clipData->SetValue(<span style="color: rgb(0, 0, 255);">0</span>); clipData->Update(); vtkCutter *cut = vtkCutter::New();
cut->SetInput(normals->GetOutput()); cut->SetCutFunction(yzPlane); cut->GenerateCutScalarsOn(); cut->SetValue(<span style="color: rgb(0, 0, 255);">0</span>,<span style="color: rgb(0, 0, 255);">0</span>); vtkStripper *cutStrips = vtkStripper::New(); cutStrips->SetInput(cut->GetOutput()); cutStrips->Update(); vtkPolyData *cutPoly = vtkPolyData::New(); cutPoly->SetPoints(cutStrips->GetOutput()->GetPoints()); cutPoly->SetPolys(cutStrips->GetOutput()->GetLines()); cutPoly->Update(); vtkTriangleFilter *cutTriangle = vtkTriangleFilter::New(); cutTriangle->SetInput(cutPoly); <span style="color: rgb(128, 128, 128);"><i>//cutTriangle->PassLinesOff();</i></span> <span style="color: rgb(128, 128, 128);"><i>//cutStrips->Delete();</i></span> <span style="color: rgb(128, 128, 128);"><i>//cut->Delete();</i></span> vtkAppendPolyData *append = vtkAppendPolyData::New(); append->AddInput(clipData->GetOutput());
<span style="color: rgb(128, 128, 128);"><i>append->AddInput(cutTriangle->GetOutput());</i></span> append->Update(); leftMRI->ShallowCopy(append->GetOutput()); leftMRI->Update(); <br><br>Any ideas<br><br>Darshan<br></pre><br> <p>
                <hr size=1>Yahoo! Mail<br>
Bring photos to life! <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com">New PhotoMail </a> makes sharing a breeze.