[vtkusers] ply file created is unreadable: help

Alex Malyushytskyy alexmalvtk at gmail.com
Mon Sep 17 16:44:58 EDT 2012


The same problem ( might be not only one) as in your other posts:

> double* x;
> this->Input->GetPointCoordinates(k,x);

double x[3];
this->Input->GetPointCoordinates(k,x);

Alex


On Mon, Sep 17, 2012 at 11:21 AM, cerina <cerine-baratelli at hotmail.fr> wrote:
> In order to resolve this problem (i got number of vertex=3*number of faces),
> i try with:
> for ( vtkIdType k=0; k<this->Input->GetNumberOfPoints();k++)
> {
> if(PointsNode->GetValue(k)==m)
> {
> double* x;
> this->Input->GetPointCoordinates(k,x);
> vtkIdType pid[1];
> pid[0] = points->InsertNextPoint (x[0],x[1],x[2]);
> vertices->InsertNextCell(1,pid);
> }
> }
>
> But now i get *0* as vertex number!!!!
>
> I will appreciate any suggestion
>
> Regards
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/ply-file-created-is-unreadable-help-tp5716143p5716148.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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