<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello again :), (sry i sent the prev msg by mistake..)<br><br>I find out that the bounds of my generated polydata are wrong...<br><br>bounds[0],bounds[2] and bounds[4] <br><br>bounds[1],bounds[3] and bounds[5] seems to be correct<br><br>that's why maybe there is the werid big when I move the camera...<br><br>I will have a look in vtkFrustumSource... but if somebody know why the bounds are not correct it would be helpful <br><br>Regards,<br>Adeline<br><br><hr id="stopSpelling">From: adeline_joli@hotmail.com<br>To: daviddoria+vtk@gmail.com<br>Date: Tue, 8 Dec 2009 11:53:07 +0000<br>CC: vtkusers@vtk.org<br>Subject: Re: [vtkusers] Build my own polydata ?<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


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&amp;FORM=MVDE6">Bing ! Trouvez !</a>                                               <br /><hr />Avec Internet Explorer, surfez en toute discrétion sur internet <a href='http://clk.atdmt.com/FRM/go/182932252/direct/01/' target='_new'>Cliquez ici !</a></body>
</html>