[vtkusers] How can I get a plane which cuts the surface perpendicularly

Sawsan Ahmed sawsanahm at yahoo.com
Tue Dec 19 10:21:07 EST 2006


Hi friends,
                Thank u very much for giving me guidance.But I have one silly question to ask.When we r generating surface normals,should not be the normals of the cells or point normals or both give more or less the same result?
   
  Again thanks in advance.
   
  Sawsan.

David.Pont at ensisjv.com wrote:
    Sawsan Ahmed <sawsanahm at yahoo.com> wrote on 18/12/2006 20:20:50:

> Hello Friends,
>                  I want to get a plane which cuts an object of 
> arbitrary shape perpendicularly along the surface.Could anyone give 
> me any idea?
> Thanks in advance.
>  
> Sawsan

Hi Sawsan,
   vtkOBBTree has a member function ComputeOBB. Perhaps you can use the outputs from this to determine the location and orientation of the longest axis. This information could then be used to locate and orient a plane: vtkPlane and vtkClipPolyData or vtkCutter can then be used to clip or cut.

hope that helps, Dave P


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061219/23e3a69d/attachment.htm>


More information about the vtkusers mailing list