// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
+
double s = bbGetInputS();
bool ok=true;
if (bbGetInputDirection().size()==3)
{
ok = !( (bbGetInputDirection()[0]==0) && (bbGetInputDirection()[1]==0) && (bbGetInputDirection()[2]==0) );
}
- if ( (bbGetInputIn()!=NULL) && (ok==true))
+ if ( (bbGetInputIn()!=NULL) && (ok==true) && (bbGetInputEdgeId()>=0))
{
+
vtkPoints* points=bbGetInputIn()->GetPoints();
long i,size=points->GetNumberOfPoints();
double p[3]; // point
double displcement_x = 0;
double displcement_y = 0;
double displcement_z = 0;
+
if (bbGetInputDirection().size()==3)
{
displcement_x = bbGetInputDirection()[0];
displcement_y = bbGetInputDirection()[1];
displcement_z = bbGetInputDirection()[2];
}
+
size=voiIdPoints.size();
for (i=0;i<size;i++)
{