<div dir="ltr"><div>I want to take the volume and apply Delaunary3D on it and vtkstripper to create mesh </div>
<div> </div>
<div>--- about the second question</div>
<div> </div>
<div>I have the sphere (vtksphere), I want to create mesh on it (tetrahedral) so I applied vtkstripper, then vtkDelaunary3D . it give the error under it </div>
<div> </div>
<div>I rewrite the code without gcnewvtkSphereSource *sphere = vtkSphereSource::NEW();<br>vtkSphereSource *sphere = vtkSphereSource::NEW();<br> sphere->SetRadius(1.0);<br> sphere->SetThetaResolution(18);<br>
sphere->SetPhiResolution(18);<br> <br> vtkStripper *v = vtkStripper::NEW();<br> v->SetInputConnection(sphere->GetOutputPort());<br> v->Update();<br> <br> vtkDelaunay3D *v3 = vtkDelaunay3D::NEW();<br>
v3->SetInputConnection(v->GetOutputPort());<br> v3->Update();</div>
<div> vtkDataSetMapper *mapper = vtkDataSetMapper::NEW();<br> mapper->SetInputConnection(v3->GetOutputPort());<br> <br> vtkActor *triangulation = vtkActor::NEW();<br> triangulation->SetMapper(mapper);<br>
triangulation->GetProperty()->SetRepresentationToWireframe();<br> <br> // Create the standard rendering stuff.<br> vtkRenderer *ren1 = vtkRenderer::NEW();<br> vtkRenderWindow *renWin = vtkRenderWindow::NEW();<br>
renWin->AddRenderer(ren1);<br> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::NEW();<br> iren->SetRenderWindow(renWin);<br> // Add the actors to the renderer, set the background and size<br> //<br>
ren1->AddActor(triangulation);<br> ren1->SetBackground(1, 1, 1);<br> renWin->SetSize(300, 300);<br> renWin->Render();</div>
<div> renWin->Render();<br> iren->Initialize();</div>
<div> iren->Start();</div>
<div> </div></div>