An implicit function is f(x,y,z) = constant. If it doesn't fit that IMO it's not an implicit function. The beauty of these beasts is that they are simple, now you want to complexify the matter by checking validity on every point, it would likely slow everything down, not to mention require modifying a lot of code to do it right.<div>
<br></div><div>I think you need a new design not a new hack ;-)</div><div><br>W<br><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 12:04 PM, Karthik Krishnan <span dir="ltr"><<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello:<br><br>I need to cut a dataset with a polyplane. So I wrote a vtkPolyPlane class that derives from vtkImplicitFunction; so one could use it in combination with a vtkCutter. <br>
<br>It does not quite work, unless the polyplane is infinite in extent. What I need is a way for the implicit function to specify that it cannot be defined at a certain point. The hack I have now is for the Evaluate method to return VTK_DOUBLE_MAX and a modification to vtkCutter to avoid contouring any cells which contain a point where the evaluated function value is VTK_DOUBLE_MAX.<br>
<br>I propose <br>- Adding a IsDefined method to vtkImplicitFunction that returns true by default (subclasses may override it)<br>- Modifying vtkCutter to query IsDefined() on points in a cell before attempting to contour a cell.<br>
<br>Any thoughts.<br><br>Thanks<br>--<br><font color="#888888">karthik<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com">http://www.kitware.com</a><br>(518) 881-4902<br>
</div>