// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
+
std::vector<double> lstX = bbGetInputLstX();
std::vector<double> lstY = bbGetInputLstY();
std::vector<double> lstZ = bbGetInputLstZ();
std::vector<int> lstIndexs = bbGetInputLstIndexs();
-
- printf("CreateMeshFromPoints::Process: sizeX %d \n", lstX.size() );
- printf("CreateMeshFromPoints::Process: sizeY %d \n", lstY.size() );
- printf("CreateMeshFromPoints::Process: sizeZ %d \n", lstZ.size() );
- printf("CreateMeshFromPoints::Process: lstIndexs %d \n", lstIndexs.size() );
-
if ( (lstIndexs.size()<=1) || (lstX.size()==0) || (lstX.size()!=lstY.size()) || (lstY.size()!=lstZ.size()) )
{
printf("Warnning! CreateMeshFromPoints::Process: List of points X Y Z and LstIndexes is not correct\n");
bbSetOutputOut(NULL);
} else {
+ printf("EED CreateMeshFromPoints::Process initial=%d final=%d\n" , lstIndexs[0] , lstIndexs[ lstIndexs.size()-1 ] );
int ii,sizeSegment1,sizeSegment2;
int endSegment;
// vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New();
} // for ii
iGeneral=iGeneral+sizeSegment1;
cells->InsertNextCell(triangleStrip);
- } //for LstIndexs
+ } //for LstIndexs
// vtkPolyData *polydata = vtkPolyData::New();
if (polydata!=NULL) polydata->Delete();
polydata = vtkPolyData::New();
bbSetOutputOut( clean->GetOutput() );
}// if listXYZ size
}
+
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====