[vtkusers] re-orienting faces coherently

gauravG gaurav.gogri83 at gmail.com
Thu Mar 21 10:45:34 EDT 2013


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.

On Thu, Mar 21, 2013 at 7:42 PM, David Gobbi [via VTK] <
ml-node+s1045678n5719530h78 at n5.nabble.com> wrote:

> Hi Guarav,
>
> If vtkFillHolesFilter is causing the inconsistent faces, right?  So if
> vtkPolyDataNormals is supposed to fix the problem, doesn't it make
> more sense to put it after FillHoles, instead of before?
>
> Also, as I said in my first email, Consistency is an _option_ for
> vtkPolyDataNormals.  That means you need SetConsistency(1) in
> order for it to take effect.
>
> I hope this helps.
>
>  - David
>
> On Thu, Mar 21, 2013 at 7:53 AM, gauravG <[hidden email]<http://user/SendEmail.jtp?type=node&node=5719530&i=0>>
> wrote:
>
> > David,
> > Thanks for the reply. what I am doing is very much similar to the
> filling
> > holes example @ (
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/FillHoles).
> > As shown in the figure in the above link, the normals of the filled
> holes
> > are not consistent with the rest of the model.
> > As per your suggestion, I calculated normals (both point & cell) for the
> > vtkpolydata input similar to the example @
> > http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals
> > with the consistency on and flag set to 1before passing to the fill
> holes
> > filter. Still my output file seem to have inconsistent faces. I could
> send
> > you my code but it is essentially a copy paste from the above two
> examples.
> > Am I missing anything? thanks again for the help. I really appreciate
> it.
> > here is my pipeline
> >
> > ply reader to read
> > vtkpolydata filter for deepcopy
> > compute normals (vtkpolydatanormals)
> > filling holes vtkFillHolesFilter
> > Ply writer
> >
> > gaurav
> >
> >
> > On Thu, Mar 21, 2013 at 6:50 PM, David Gobbi [via VTK] <[hidden email]>
> > wrote:
> >>
> >> Hi Guarav,
> >>
> >> Your description of what you've done is too vague for me to help you.
> >> Write out the full names of the filters that you are using, plus a
> >> summary of the options that you are using with each filter.
> >>
> >>  - David
> >>
> >> On Thu, Mar 21, 2013 at 1:55 AM, gauravG <[hidden email]> wrote:
> >>
> >> > David-
> >> > thanks a bunch for the reply.
> >> > Here is my pipeline;
> >> > reader->polydata->fillholes filter-> writer;
> >> >
> >> > Now I computed point and cell normals for the polydata consistently.
> >> > still
> >> > the output faces are inconsistent. Am I missing anything.
> >> > thanks again,
> >> > gaurav
> >> >
> >> >
> >> > On Thu, Mar 21, 2013 at 11:49 AM, David Gobbi [via VTK] <[hidden
> email]>
> >> > wrote:
> >>
> >> >>
> >> >> Hi Guarav,
> >> >>
> >> >> Consistency is one of the options for vtkPolyDataNormals.
> >> >>
> >> >> On Thu, Mar 21, 2013 at 12:14 AM, gauravG <[hidden email]> wrote:
> >> >> > Hi- I'm trying to re-orient faces coherently after reconstruction
> and
> >> >> > hole
> >> >> > filling. Is there a way to accomplish this in VTK. The hole filled
> >> >> > have
> >> >> > a
> >> >> > orientation opposite to the neighboring faces.
> >> >> > thanks in advance
> >> >> > Gaurav
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/re-orienting-faces-coherently-tp5719511p5719530.html
>  To unsubscribe from re-orienting faces coherently, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5719511&code=Z2F1cmF2LmdvZ3JpODNAZ21haWwuY29tfDU3MTk1MTF8MjA2ODUwMDI1Mg==>
> .
> NAML<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>
>




--
View this message in context: http://vtk.1045678.n5.nabble.com/re-orienting-faces-coherently-tp5719511p5719540.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130321/687fe2c6/attachment.htm>


More information about the vtkusers mailing list