<div class="gmail_quote">On Fri, May 18, 2012 at 10:15 AM, tasnim <span dir="ltr"><<a href="mailto:hanene-jeder@hotmail.fr" target="_blank">hanene-jeder@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1)I used now the triangleFilter for my sphereSource, you mean that i have to<br>
use it for my new polyData also !!! , but what shall I make as an<br>
InputConnection for this new triangleFilter please??<br></blockquote><div><br></div><div>The triangle filter should go between the thing you want to subdivide and the subdivision filter. It doesn't seem like there is a need to triangle filter the sphere source in this case.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) I followed the subdivision example by doing this:<br>
<div class="im"> vtkSmartPointer<vtkPolyDataAlgorithm> subdivisionFilter;<br>
subdivisionFilter =<br>
vtkSmartPointer<vtkLoopSubdivisionFilter>::New();<br>
dynamic_cast<vtkLoopSubdivisionFilter *><br>
(subdivisionFilter.GetPointer())->SetNumberOfSubdivisions(numberOfSubdivisions);<br></div></blockquote><div><br></div><div>Ah, I see. I added a comment about why this is done to the example. You should typically not do it like this. Also, you should remove the VTK version conditionals from your code to make it easier/shorter. </div>
<div><br></div><div>David</div></div>