[vtkusers] VtkDelaunay2d Problem, please Help

Karthik Krishnan karthik.krishnan at kitware.com
Sun May 20 23:50:27 EDT 2007


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/20070520/2aac0790/attachment.htm>


More information about the vtkusers mailing list