<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br><br>I used FrustumSource to build the frustum polydata.<br><br>vtkFrustumSource * fs = vtkFrustumSource::New();<br><br>vtkPlanes * frustumPlanes = areaPicker->GetFrustum();<br><br>fs->SetPlanes(frustumPlanes);<br><br>frustumedPolyData = fs->GetOutput();<br><br>// display<br>vtkPolyDataMapper *map2 = vtkPolyDataMapper::New();<br>map2->SetInput(frustumedPolyData);<br> <br>vtkActor* act2 = vtkActor::New();<br>act2->SetMapper(map2);<br><br>It works, the frustum is displayed but there is kind of wierd problem. when I move the camera sometimes all my others<br>3D objects (and the frustum) just disappear ... ! <br><br>Regards,<br>Adeline<br> <br><br>> Date: Mon, 7 Dec 2009 12:52:38 -0500<br>> From: daviddoria+vtk@gmail.com<br>> CC: vtkusers@vtk.org<br>> Subject: Re: [vtkusers] Build my own polydata ?<br>> <br>> On Mon, Dec 7, 2009 at 12:09 PM, David Gobbi <david.gobbi@gmail.com> wrote:<br>> > On Mon, Dec 7, 2009 at 10:00 AM, David Gobbi <david.gobbi@gmail.com> wrote:<br>> >> On Mon, Dec 7, 2009 at 9:45 AM, Adeline Joliet <adeline_joli@hotmail.com> wrote:<br>> >>> Hello,<br>> >>><br>> >>> Here my question, I'using AreaPicker to get the frustum (getClipPoint)<br>> >>> created from 4 points.getClipPoint return me the 8 points (8 vertices) that<br>> >>> define the selected frustum.<br>> >>><br>> >>> Is there any posibilitie to build a polydata from that ? If so, how ?<br>> >>><br>> >>> any help would be appreciable :)<br>> ><br>> > Ignore my last email, it will probably be much easier to use the<br>> > vtkFrustumSource. It doesn't do exactly what you want (it needs the<br>> > frustum as a vtkPlanes object, not as eight points) but it's still<br>> > much better than having to build the polydata from scratch. You just<br>> > have to create a vtkPlanes object from your eight points.<br>> ><br>> > David<br>> > _______________________________________________<br>> <br>> There is a shell of an example here (it doesn't current work/do anything):<br>> http://www.vtk.org/Wiki/Frustum<br>> <br>> Adeline, if you figure out how to construct a frustum it would be nice<br>> if you could add it to the example (or at least report back here with<br>> some short code)<br>> <br>> Thanks,<br>> <br>> David<br>> _______________________________________________<br>> Powered by www.kitware.com<br>> <br>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>> <br>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>> <br>> Follow this link to subscribe/unsubscribe:<br>> http://www.vtk.org/mailman/listinfo/vtkusers<br>                                            <br /><hr />Vous cherchez l'intégrale des clips de Michael Jackson ? <a href='http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6' target='_new'>Bing ! Trouvez !</a></body>
</html>