[vtkusers] VtkDelaunay2d Problem, please Help

Secolas UA secolasua at gmail.com
Mon May 21 10:59:23 EDT 2007


I have changed the code like you said and now the polydata model disapears?
Any more sugestions?

Thanks for the help
Ricardo Seco
University of Aveiro

On 5/21/07, Karthik Krishnan <karthik.krishnan at kitware.com> wrote:
>
> On 5/20/07, Secolas UA <secolasua at gmail.com> wrote:
> >
> > Hello,
> >
> > I have a polydata model and I want to retriangulate it by vtkDelauny2d.
> > I've tried like this:
> >
> > void Delaunay(void)
> > {
> >     vtkDelaunay2D *newMesh = vtkDelaunay2D::New();
> >     newMesh->SetSource(polyData);
>
>
> The source is for specifying the optional constraint edges for the
> triangulation, not the input itself.. What you need is
>   newMesh->SetInput( polyData );
> instead of
>   newMesh->SetSource( polyData );
>
>     newMesh->Update();
> >     polyData = newMesh->GetOutput();
> >     polyData->Modified();
> >     iren->Render();
> > }
> >
> > But the following message appears:
> >
> > ERROR: In d:\Ricardo\vtk-5.0.3\Filtering\vtkDemandDrivenPipeline.cxx ,
> > line 710
> > vtkStreamingDemandDrivenPipeline (02C269C8): Input port 0 of algorithm
> > vtkDelaunay2D(02BD2C88) has 0 connections but is not optional.
> >
> > Anyone could help me?
> >
> > Thanks in Advance.
> >
> > Ricardo Seco
> > University of Aveiro
> >
> >
> >
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> Karthik Krishnan
> R&D Engineer,
> Kitware Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070521/07211eaf/attachment.htm>


More information about the vtkusers mailing list