[vtk-developers] vtkLine::GetNumberOfEdges

Will Schroeder will.schroeder at kitware.com
Sun Oct 3 17:13:07 EDT 2010


It should return 0, it was done that way intentionally. Check out
vtkTriangle, it returns 0 number of faces, and other cells do the same.
W


On Sun, Oct 3, 2010 at 3:24 PM, David Doria <daviddoria at gmail.com> wrote:

> The function vtkLine::GetNumberOfEdges currently returns 0. Would it make
> sense for it to return 1, because the cell is itself an edge? I am writing a
> function which loops over all of the lines/edges in a cell, and I have to
> treat the vtkLine cell as a special case, where it seems like it should just
> be a degenerate case of a general vtkCell (with 1 edge).
>
> Any comments?
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>


-- 
William J. Schroeder, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com
http://www.kitware.com
(518) 881-4902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20101003/8630cb64/attachment.html>


More information about the vtk-developers mailing list