[vtk-developers] Adding ComputeArea() to vtkTriangle
mathieu.malaterre at gmail.com
Fri Dec 18 11:09:22 EST 2009
Ok, my bad. I thought this was introducing a new framework to compute
2D area which seem difficult to extend to 3d cell.
thanks for clarification.
On Fri, Dec 18, 2009 at 5:05 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> vtkTriangle is a cell. It is not filter. It currently has a
> TriangleArea() method, but it is cumbersome to use. David is proposing
> a convenience method to do the computation. It calls the
> TriangleArea() method but save the user from setting up the parameters
> for that call.
> On Fri, Dec 18, 2009 at 10:54 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
>> On Fri, Dec 18, 2009 at 10:51 AM, Mathieu Malaterre
>> <mathieu.malaterre at gmail.com> wrote:
>>> Hi David,
>>> I do not have a strong opinion on this particular case.
>>> However here is a couple of thoughts, I have from my modest
>>> understanding of VTK.
>>> 1. I would really separate source/sink from filter. You are writing a
>>> partial filter (aka algorithm) in a data object.
>>> 2. You are duplicating (possibly) code from vtkMeshQuality.
>> 1) I'm not sure I follow. Isn't vtkTriangle an "object", not a "source" or
>> 2) That is likely the case and that is exactly my point here -
>> vtkMeshQuality (or anything else) should not have to implement this code, it
>> should just be able to call ComputeArea() on a triangle object.
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Follow this link to subscribe/unsubscribe:
> 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:
More information about the vtk-developers