// 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();
-
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");
} // 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)
//=====
displcement_y = bbGetInputDirection()[1];
displcement_z = bbGetInputDirection()[2];
} // if TypeIn 0 Direction
+
+ printf(" EED MeshDeformation::Process %ld %ld - %f %f %f \n", EdgeIdBack, bbGetInputEdgeId() , lstCenter[0],lstCenter[1],lstCenter[2] );
+
if (bbGetInputTypeIn()==1) // Center
{
if (EdgeIdBack==bbGetInputEdgeId() )
if (EdgeIdBack!=bbGetInputEdgeId() )
{
EdgeIdBack = bbGetInputEdgeId();
- displcement_x = 0;
- displcement_y = 0;
- displcement_z = 0;
voiIdPoints.clear();
for ( i=0 ; i<size ; i++)
{
voiIdPoints.push_back( i );
} // if
} // for i
- } // back
+ backLstCenter[0] = lstCenter[0];
+ backLstCenter[1] = lstCenter[1];
+ backLstCenter[2] = lstCenter[2];
+ } // if EdgeIdBack
if ( !((displcement_x==0) &&(displcement_y==0) && (displcement_z==0)) )
{