//=====
void MeshDeformation::Process()
{
-
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
std::vector<double> lstCenter = bbGetInputCenter();
-
double s = bbGetInputS();
bool ok = false;
if (bbGetInputTypeIn()==0) // direction
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)) )
{
points->Modified();
bbGetInputIn()->Modified();
} // if distance_x y z != 0
- } // In != NULL ok active
+ } // In != NULL ok active
}
//=====
// 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)
backLstCenter.push_back(0);
backLstCenter.push_back(0);
}
+
//=====
// 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)
//=====
}
+
//=====
// 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)
//=====
void MeshDeformation::bbUserFinalizeProcessing()
{
-
// THE FINALIZATION METHOD BODY :
// Here does nothing
// but this is where you should desallocate the internal/output pointers
// if any
-
}
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk