// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- printf("EED BooleanOperationPolyDataFilter::Process Start In1=%p In2=%p\n", bbGetInputIn1(), bbGetInputIn2() );
-
-
-
if ((bbGetInputIn1()!=NULL) && (bbGetInputIn2()!=NULL) )
{
displcement_y = bbGetInputDirection()[1];
displcement_z = bbGetInputDirection()[2];
} // if TypeIn 0 Direction
-
if (bbGetInputTypeIn()==1) // Center
{
if (EdgeIdBack==bbGetInputEdgeId() )
{
- displcement_x = (lstCenter[0]-backLstCenter[0])/1.0;
- displcement_y = (lstCenter[1]-backLstCenter[1])/1.0;
- displcement_z = (lstCenter[2]-backLstCenter[2])/1.0;
+ displcement_x = (lstCenter[0]-backLstCenter[0])/1.0;
+ displcement_y = (lstCenter[1]-backLstCenter[1])/1.0;
+ displcement_z = (lstCenter[2]-backLstCenter[2])/1.0;
} // if EdgeIdBack!=bbGetInputEdgeId()
- backLstCenter[0]= lstCenter[0];
- backLstCenter[1]= lstCenter[1];
- backLstCenter[2]= lstCenter[2];
+ backLstCenter[0] = lstCenter[0];
+ backLstCenter[1] = lstCenter[1];
+ backLstCenter[2] = lstCenter[2];
} // if TypeIn 1 Center
-
-
- points->GetPoint( bbGetInputEdgeId() , pb );
- if (EdgeIdBack!=bbGetInputEdgeId() )
+ points->GetPoint( bbGetInputEdgeId() , pb );
+ if (EdgeIdBack!=bbGetInputEdgeId() )
+ {
+ EdgeIdBack = bbGetInputEdgeId();
+ displcement_x = 0;
+ displcement_y = 0;
+ displcement_z = 0;
+ voiIdPoints.clear();
+ for ( i=0 ; i<size ; i++)
{
- EdgeIdBack = bbGetInputEdgeId();
- voiIdPoints.clear();
- for ( i=0 ; i<size ; i++)
+ points->GetPoint(i,p);
+ if ( (p[0]>(pb[0]-sx)) && (p[0]<(pb[0]+sx)) &&
+ (p[1]>(pb[1]-sy)) && (p[1]<(pb[1]+sy)) &&
+ (p[2]>(pb[2]-sz)) && (p[2]<(pb[2]+sz)) )
{
- points->GetPoint(i,p);
- if ( (p[0]>(pb[0]-sx)) && (p[0]<(pb[0]+sx)) &&
- (p[1]>(pb[1]-sy)) && (p[1]<(pb[1]+sy)) &&
- (p[2]>(pb[2]-sz)) && (p[2]<(pb[2]+sz)) )
- {
- voiIdPoints.push_back( i );
- } // if
- } // for i
- } // back
+ voiIdPoints.push_back( i );
+ } // if
+ } // for i
+ } // back
if ( !((displcement_x==0) &&(displcement_y==0) && (displcement_z==0)) )
{
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- printf("EED PlaneWidget_Base::Process Start \n");
if ((bbGetInputType()==1) && (bbGetInputIn()!=NULL) )
{
- printf("EED PlaneWidget_Base::Process 1 \n");
std::vector<double> origin = bbGetInputIn()->GetCenter();
std::vector<double> normal = bbGetInputIn()->GetNormal();
origin[0] = origin[0] + normal[0]*bbGetInputParam();
bbGetInputIn()->Process();
bbGetInputIn()->Execute();
} // if Type == 1
- printf("EED PlaneWidget_Base::Process End \n");
}
//=====
// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
- printf ("EED PointPickerNearest::Process Start\n");
-
std::vector<double> lstNormal;
std::vector<double> refPoint = bbGetInputPoint();
vtkPoints *points = bbGetInputMesh()->GetPoints();
long size = points->GetNumberOfPoints();
double border = bbGetInputBorder() * bbGetInputBorder();
- printf ("EED PointPickerNearest::Process 2\n");
for ( i=0 ; i<size ; i++)
{
points->GetPoint(i,p);
bbSetOutputPointId( iBack );
bbSetOutputNormal( lstNormal );
std::vector<double> lstPointOut;
- if (iBack>=0){
+ if (iBack>=0)
+ {
points->GetPoint(iBack,p);
lstPointOut.push_back(p[0]);
lstPointOut.push_back(p[1]);
lstPointOut.push_back(p[2]);
- printf ("EED PointPickerNearest::Process 7 pointOut=%f %f %f\n", lstPointOut[0],lstPointOut[1],lstPointOut[2]);
}// if iBack
bbSetOutputPointOut( lstPointOut );
bbSignalOutputModification();
bbSetOutputPointOut( bbGetInputPoint() );
bbSignalOutputModification();
}
- printf ("EED PointPickerNearest::Process END\n");
}
//=====
// 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)