<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 1, 2015 at 11:35 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I thought of a simpler solution for the vtkBoundingBox issue.  The discussion we've had so far has focused on getting vtkWrapTcl to deal with the vtkBoundingBox type.  But that can be avoided if we instead just focus on the ComputeBoundingBox method.  Here's how it would work:<div><br></div><div>In vtkWrapTcl, it's pretty easy to see how the AddObserver method was added for vtkObject.  Just search for "AddObserver" and it comes up in exactly two places.  Likewise, the code for ComputeBoundingBox could be added for vtkAbstractMapper3D.  Adding it to this base class will automatically make it available in all the wrapped subclasses.</div></div></blockquote><div><br></div><div>Thanks for the suggestion, but it was actually fairly easy to just add support for any method returning vtkBoundingBox:</div><div><br></div><div><a href="https://gitlab.kitware.com/dlonie/vtk/commit/bdd4c1e1a3f357338334b6cb83fb3c5076e8c001?force_show_diff=true#diff-200">https://gitlab.kitware.com/dlonie/vtk/commit/bdd4c1e1a3f357338334b6cb83fb3c5076e8c001?force_show_diff=true#diff-200</a></div><div><br></div><div>The wrapping code turned out to be much easier to work with than I thought it would!</div><div><br></div><div>Dave</div></div></div></div>