[vtkusers] Re: GenericDataSetTessellator question
Soeren Gebbert
soeren.gebbert at inpro.de
Thu Mar 24 12:10:19 EST 2005
Dear François,
thanks a lot for the fast answer, i have changed the return value to 4
and now the tessellation looks much better.
But the face-centerpoint is still at the wrong position (moved to a
corner). But i think i know now
where i have to search.
Thanks and best regards
soeren
François Bertel wrote:
> Hi Soeren,
>
> I suspect that this problem comes from the implementation of:
>
> int vtkBridgeCell::GetNumberOfBoundaries(int dim)
>
> For dim=0, the number of boundaries is NOT the number of points but
> the number of "corner" points, for a quad it is always 4, whatever is
> the number of points. The current implementation just returns the
> actual number of points for a linear cell, but for a none linear cell
> it returns the number of points minus the number of edges, which is
> right for the VTK quadratic cells (because there is one extra point
> per edge), BUT which is wrong in your case. So you should add your
> case here by returning 4 in the quad case and see what happens.
>
> Regards.
>
More information about the vtkusers
mailing list