Amazingly (to me, anyway), a google on vtkCatmullClarkFilter yields only 15 hits all derived from this doxygen output:<div><a href="http://www.cg.tuwien.ac.at/courses/MathMethodenCG/SS2003/4-Kuehschelm-Wagner-Zambal/html/classvtkCatmullClarkFilter.html">http://www.cg.tuwien.ac.at/courses/MathMethodenCG/SS2003/4-Kuehschelm-Wagner-Zambal/html/classvtkCatmullClarkFilter.html</a><br>
<br></div><div>I would look at all the pages referenced from there and try to contact one of the original authors of the code. There is no </div><div>vtkCatmullClarkFilter class in VTK itself.<br></div><div><br></div><div>
Good luck!</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 6:03 AM, <a href="mailto:minococciolo@libero.it">minococciolo@libero.it</a> <span dir="ltr"><<a href="mailto:minococciolo@libero.it">minococciolo@libero.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello everybody,<br>
I'm trying to use vtkCatmullClarkFilter to create a<br>
quadrangular mesh.<br>
Unfortunately, the documentation about it on the web is<br>
quite null. Is there someone who can help me?<br>
I'm using C++ with Visual C++<br>
Express 2005, but every example or source code in tcl, python etc. is good.<br>
<br>
Thank you very much.<br>
<br>
/*----------Here is a simple code. It doesn't work!<br>
------------*/<br>
<br>
#include....<br>
<br>
int main(int argc, char** argv)<br>
{<br>
// First we'll<br>
create some points.<br>
//<br>
vtkPoints *points = vtkPoints::New();<br>
points-<br>
>InsertPoint(0, 0.0, 0.0, 0.0);<br>
points->InsertPoint(1, 0.0, 1.0, 0.0);<br>
points-<br>
>InsertPoint(2, 1.0, 1.0, 0.0);<br>
points->InsertPoint(3, 1.0, 0.0, 0.0);<br>
<br>
<br>
vtkCellArray *strips = vtkCellArray::New();<br>
strips->InsertNextCell(4);<br>
strips-<br>
>InsertCellPoint(0);<br>
strips->InsertCellPoint(1);<br>
strips->InsertCellPoint(2);<br>
<br>
strips->InsertCellPoint(3);<br>
<br>
vtkPolyData *profile = vtkPolyData::New();<br>
<br>
profile->SetPoints(points);<br>
profile->SetPolys(strips);<br>
<br>
vtkCatmullClarkFilter<br>
*cc = vtkCatmullClarkFilter::New();<br>
cc->SetNumberOfSubdivisions(4);<br>
cc-<br>
>SetInput(profile);<br>
cc->Execute();<br>
cc->Update();<br>
<br>
vtkPolyDataMapper *map =<br>
vtkPolyDataMapper::New();<br>
map->SetInput(cc->GetOutput());<br>
<br>
vtkActor *strip =<br>
vtkActor::New();<br>
strip->SetMapper(map);<br>
strip->GetProperty()->SetColor<br>
(0.3800, 0.7000, 0.1600);<br>
<br>
// Create the usual rendering stuff.<br>
vtkRenderer<br>
*ren1 = vtkRenderer::New();<br>
vtkRenderWindow *renWin = vtkRenderWindow::New();<br>
<br>
renWin->AddRenderer(ren1);<br>
vtkRenderWindowInteractor *iren =<br>
vtkRenderWindowInteractor::New();<br>
iren->SetRenderWindow(renWin);<br>
<br>
// Add the<br>
actors to the renderer, set the background and size<br>
//<br>
ren1->AddActor(strip);<br>
<br>
<br>
ren1->SetBackground(0.1, 0.2, 0.4);<br>
renWin->SetSize(250, 250);<br>
renWin-<br>
>Render();<br>
<br>
// render the image<br>
iren->Initialize();<br>
iren->Start();<br>
<br>
return<br>
0 ;<br>
}<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>