[vtkusers] vtkFrustumSource Output polydata bounds problem

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 11 08:46:14 EST 2009


Welcome to VTK!

Try,

fs->Update()
before
frustumedPolyData = fs->GetOutput();

VTK's pipeline is demand driven. Nothing is produced until the filter
receives an Update() either explicitly or implicitly from a down
stream filter.

On Fri, Dec 11, 2009 at 4:36 AM, Adeline Joliet
<adeline_joli at hotmail.com> wrote:
> Hello vtk community,
>
> I'm trying to use vtkFrustumSource to generate a polydata from the 6 planes
> of a frustum.
>
>
> vtkFrustumSource * fs = vtkFrustumSource::New();
>
> vtkPlanes * frustumPlanes = areaPicker->GetFrustum();
>
> fs->SetPlanes(frustumPlanes);
>
> frustumedPolyData = fs->GetOutput();
>
> I'm able to display frustumedPolyData.
>
> But then I need to apply some filter on this polydata and i find out that
> the bounds of frustumedPolyData are wrong ...
>
>
> bounds[0],bounds[2] and bounds[4] are equal to 439290.0000 ...
>
> bounds[1],bounds[3] and bounds[5] seems to be correct
>
> I had a look to how vtkFrustumSource build the polydata but I can't find
> something wrong...
>
> Does somebody has an idea why the bounds are wrong ?
>
>
> Regards,
> Adeline
>
> ________________________________
> Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici !
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list