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

David.Pont at ensisjv.com David.Pont at ensisjv.com
Tue Dec 19 15:07:13 EST 2006


Sawsan Ahmed <sawsanahm at yahoo.com> wrote on 20/12/2006 04:21:07:

> 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?

In general yes, depends how you are generating them, for example
vtkPolyDataNormals has a few settings that can strongly alter the end
result.
   Dave P

>
> 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 _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.
> org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061220/7d374f38/attachment.htm>


More information about the vtkusers mailing list