Thanks you very much. I will try that. I thought normals might be needed for filling holes and not for writing a ply file. thanks again.<br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 7:42 PM, David Gobbi [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5719540&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
        Hi Guarav,
<br><br>If vtkFillHolesFilter is causing the inconsistent faces, right? So if
<br>vtkPolyDataNormals is supposed to fix the problem, doesn't it make
<br>more sense to put it after FillHoles, instead of before?
<br><br>Also, as I said in my first email, Consistency is an _option_ for
<br>vtkPolyDataNormals. That means you need SetConsistency(1) in
<br>order for it to take effect.
<br><br>I hope this helps.
<br><br></div> - David
<br><div class="im"><br>On Thu, Mar 21, 2013 at 7:53 AM, gauravG <<a href="http://user/SendEmail.jtp?type=node&node=5719530&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
</div><div><div class="im"><div class='shrinkable-quote'><br>> David,
<br>> Thanks for the reply. what I am doing is very much similar to the filling
<br>> holes example @ (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/FillHoles" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/FillHoles</a>).
<br>> As shown in the figure in the above link, the normals of the filled holes
<br>> are not consistent with the rest of the model.
<br>> As per your suggestion, I calculated normals (both point & cell) for the
<br>> vtkpolydata input similar to the example @
<br>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals</a><br>> with the consistency on and flag set to 1before passing to the fill holes
<br>> filter. Still my output file seem to have inconsistent faces. I could send
<br>> you my code but it is essentially a copy paste from the above two examples.
<br>> Am I missing anything? thanks again for the help. I really appreciate it.
<br>> here is my pipeline
<br>>
<br>> ply reader to read
<br>> vtkpolydata filter for deepcopy
<br>> compute normals (vtkpolydatanormals)
<br>> filling holes vtkFillHolesFilter
<br>> Ply writer
<br>>
<br>> gaurav
<br>>
<br>>
</div></div>> On Thu, Mar 21, 2013 at 6:50 PM, David Gobbi [via VTK] <[hidden email]>
<br><div><div class="h5">> wrote:
<div class='shrinkable-quote'><br>>>
<br>>> Hi Guarav,
<br>>>
<br>>> Your description of what you've done is too vague for me to help you.
<br>>> Write out the full names of the filters that you are using, plus a
<br>>> summary of the options that you are using with each filter.
<br>>>
<br>>> - David
<br>>>
<br>>> On Thu, Mar 21, 2013 at 1:55 AM, gauravG <[hidden email]> wrote:
<br>>>
<br>>> > David-
<br>>> > thanks a bunch for the reply.
<br>>> > Here is my pipeline;
<br>>> > reader->polydata->fillholes filter-> writer;
<br>>> >
<br>>> > Now I computed point and cell normals for the polydata consistently.
<br>>> > still
<br>>> > the output faces are inconsistent. Am I missing anything.
<br>>> > thanks again,
<br>>> > gaurav
<br>>> >
<br>>> >
<br>>> > On Thu, Mar 21, 2013 at 11:49 AM, David Gobbi [via VTK] <[hidden email]>
<br>>> > wrote:
<br>>>
<br>>> >>
<br>>> >> Hi Guarav,
<br>>> >>
<br>>> >> Consistency is one of the options for vtkPolyDataNormals.
<br>>> >>
<br>>> >> On Thu, Mar 21, 2013 at 12:14 AM, gauravG <[hidden email]> wrote:
<br>>> >> > Hi- I'm trying to re-orient faces coherently after reconstruction and
<br>>> >> > hole
<br>>> >> > filling. Is there a way to accomplish this in VTK. The hole filled
<br>>> >> > have
<br>>> >> > a
<br>>> >> > orientation opposite to the neighboring faces.
<br>>> >> > thanks in advance
<br>>> >> > Gaurav
</div></div></div><div><div class="h5">_______________________________________________
</div>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" 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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div><div class="h5">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div></div><a href="http://vtk.1045678.n5.nabble.com/re-orienting-faces-coherently-tp5719511p5719530.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/re-orienting-faces-coherently-tp5719511p5719530.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from re-orienting faces coherently, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/re-orienting-faces-coherently-tp5719511p5719540.html">Re: re-orienting faces coherently</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>