<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-&gt;GetFrustum();<br><br>fs-&gt;SetPlanes(frustumPlanes);<br><br>frustumedPolyData = fs-&gt;GetOutput();<br><br>// display<br>vtkPolyDataMapper *map2 = vtkPolyDataMapper::New();<br>map2-&gt;SetInput(frustumedPolyData);<br>&nbsp; <br>vtkActor* act2 = vtkActor::New();<br>act2-&gt;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>&nbsp; <br><br>&gt; Date: Mon, 7 Dec 2009 12:52:38 -0500<br>&gt; From: daviddoria+vtk@gmail.com<br>&gt; CC: vtkusers@vtk.org<br>&gt; Subject: Re: [vtkusers] Build my own polydata ?<br>&gt; <br>&gt; On Mon, Dec 7, 2009 at 12:09 PM, David Gobbi &lt;david.gobbi@gmail.com&gt; wrote:<br>&gt; &gt; On Mon, Dec 7, 2009 at 10:00 AM, David Gobbi &lt;david.gobbi@gmail.com&gt; wrote:<br>&gt; &gt;&gt; On Mon, Dec 7, 2009 at 9:45 AM, Adeline Joliet &lt;adeline_joli@hotmail.com&gt; wrote:<br>&gt; &gt;&gt;&gt; Hello,<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Here my question, I'using AreaPicker to get the frustum (getClipPoint)<br>&gt; &gt;&gt;&gt; created from 4 points.getClipPoint return me the 8 points (8 vertices) that<br>&gt; &gt;&gt;&gt; define the selected frustum.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Is there any posibilitie to build a polydata from that ? If so, how ?<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; any help would be appreciable :)<br>&gt; &gt;<br>&gt; &gt; Ignore my last email, it will probably be much easier to use the<br>&gt; &gt; vtkFrustumSource. &nbsp;It doesn't do exactly what you want (it needs the<br>&gt; &gt; frustum as a vtkPlanes object, not as eight points) but it's still<br>&gt; &gt; much better than having to build the polydata from scratch. &nbsp;You just<br>&gt; &gt; have to create a vtkPlanes object from your eight points.<br>&gt; &gt;<br>&gt; &gt; &nbsp; David<br>&gt; &gt; _______________________________________________<br>&gt; <br>&gt; There is a shell of an example here (it doesn't current work/do anything):<br>&gt; http://www.vtk.org/Wiki/Frustum<br>&gt; <br>&gt; Adeline, if you figure out how to construct a frustum it would be nice<br>&gt; if you could add it to the example (or at least report back here with<br>&gt; some short code)<br>&gt; <br>&gt; Thanks,<br>&gt; <br>&gt; David<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt; <br>&gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>&gt; <br>&gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; 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>