<div class="gmail_quote">On Mon, Jan 25, 2010 at 9:33 PM, pat marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Adopting a math library, one thing to consider is vtk's wrapped api.  If new data classes are used as public method arguments or return values they may or may not translate easily to vtk's wrapped languages, java, python, tcl.<br>

<br>Devil's advocate- If something like Eigen is so easy to incorporate into a project, then why does vtk need to include it, why not leave it up to the application developer to choose their own math library?<br><font color="#888888"><br>
Pat</font><div><div></div><div class="h5"></div></div></blockquote></div><br><div>First, I don't think anyone said it is "so easy". It wouldn't really help anything if the user (developer) used their own library because the point is that the math library has to interface nicely with VTK. Using your own math library calls for a conversion before and after every vtk call, which gets annoying in a big hurry.</div>
<div><br></div><div>My thought is that you should be able to do things like:</div><div>ChosenMathLibraryMatrix a = vtkFoo();</div><div><br></div><div>rather than the messy arrays that happen currently.</div><div><br></div>
<div>I also really think it would let us clean up a lot of quite messy internal mathematics code.</div><div><br clear="all">David<br></div>