you can use vtkTriangleFilter to triangulate the polydata and then play with the subdivision<br><br><div class="gmail_quote">On Wed, May 23, 2012 at 12:49 PM, tasnim <span dir="ltr">&lt;<a href="mailto:hanene-jeder@hotmail.fr" target="_blank">hanene-jeder@hotmail.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br>
i create a program which creates a spheresource, then i select a cell,<br>
create a vtkPolyData from it, and try to subdivide it with the<br>
vtkLoopsubdivisionFilter.But, when I pick a cell, a message error appears:<br>
<br>
 *Warning: In C:\vtk-download\vtk<br>
source\Graphics\vtkLoopSubdivisionFilter.cxx, line 363<br>
vtkLoopSubdivisionFilter (019BAE58): vtkLoopSubdivisionFilter only operates<br>
on triangles, but this data set has no triangles to operate on. ERROR: In<br>
C:\vtk-download\vtk source\Filtering\vtkExecutive.cxx, line 756<br>
vtkStreamingDemandDrivenPipeline (019BB448): Algorithm<br>
vtkLoopSubdivisionFilter(019BAE58) returned failure for request:<br>
vtkInformation (019CD1B8) Debug: Off Modified Time: 3532 Reference Count: 1<br>
Registered Events: (none) Request: REQUEST_DATA FORWARD_DIRECTION: 0<br>
ALGORITHM_AFTER_FORWARD: 1 FROM_OUTPUT_PORT: 0*<br>
 This message shows that my new polyData didn&#39;t contain triangles.<br>
Any Help please, and thanks<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/error-message-in-subdividing-a-cell-tp5713334.html" target="_blank">http://vtk.1045678.n5.nabble.com/error-message-in-subdividing-a-cell-tp5713334.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>