std::vector<double> dir = bbGetInputDirection();
extrude = vtkLinearExtrusionFilter::New();
triangleFilter = vtkTriangleFilter::New();
+
+
extrude->SetInputData( bbGetInputIn() );
extrude->SetExtrusionTypeToNormalExtrusion();
if (dir.size()==3)
} else {
extrude->SetVector(1, 0, 0);
}
- extrude->SetScaleFactor( bbGetInputScalarFactor() * (-1) );
+ // extrude->SetScaleFactor( bbGetInputScalarFactor() * (-1) );
+ extrude->SetScaleFactor( bbGetInputScalarFactor() );
extrude->Update();
triangleFilter->SetInputData( extrude->GetOutput() );
triangleFilter->Update( );
- bbSetOutputOut( triangleFilter->GetOutput() );
+
+ vtkPolyData *outputPolydata = triangleFilter->GetOutput();
+ printf("EED LinearExtrusionFilter::Process A\n");
+ if (bbGetInputScalarFactor()>1 )
+ {
+ printf("EED LinearExtrusionFilter::Process B\n");
+ vtkReverseSense * reverseSense = vtkReverseSense::New();
+ reverseSense->SetInputData( triangleFilter->GetOutput() );
+ reverseSense->ReverseNormalsOff();
+ reverseSense->ReverseCellsOn();
+ reverseSense->Update();
+ outputPolydata=reverseSense->GetOutput();
+ }
+ bbSetOutputOut( outputPolydata );
} else {
bbSetOutputOut( NULL );
}// if bbGetInputIn
if (bbGetInputIn()!=NULL)
{
-
vtkPolyDataNormals* normal = vtkPolyDataNormals::New();
normal->SetInputData( bbGetInputIn() );
if (bbGetInputComputeType()==0)
} else {
bbSetOutputOut( NULL );
}// if In
-
}
+
//=====
// 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)
//=====
bbSetInputIn(NULL);
bbSetOutputOut( NULL );
}
+
//=====
// 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 PolyDataNormals::bbUserInitializeProcessing()
{
-
// THE INITIALIZATION METHOD BODY :
// Here does nothing
// but this is where you should allocate the internal/output pointers
-// if any
-
-
+// if any
}
+
//=====
// 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 PolyDataNormals::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