[vtkusers] re-orienting faces coherently

David Gobbi david.gobbi at gmail.com
Thu Mar 21 10:11:59 EDT 2013


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 <gaurav.gogri83 at gmail.com> 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



More information about the vtkusers mailing list