void MaracasTubeFilter::Run()
{
-
-
unsigned int i;
unsigned int nTv = 8; // No. of surface elements for each tube vertex
// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
- printf("EED TubeFilter::Process start \n");
-
if (tubefilter!=NULL)
{
delete tubefilter;
tubefilter->SetlstColour( bbGetInputColour() );
tubefilter->Run();
bbSetOutputOutAxis( tubefilter->GetActor() );
- printf("EED TubeFilter::Process end \n");
}
//=====
BBTK_INPUT(TubeFilter,lstPointY,"lstPointY",std::vector<double>,"");
BBTK_INPUT(TubeFilter,lstPointZ,"lstPointZ",std::vector<double>,"");
BBTK_INPUT(TubeFilter,lstRadio,"lstRadio. Default value is 1 everywhere.",std::vector<double>,"");
- BBTK_INPUT(TubeFilter,Colour,"Colour",std::vector<double>,"");
+ BBTK_INPUT(TubeFilter,Colour,"Colour (default 1 0 0)",std::vector<double>,"");
BBTK_INPUT(TubeFilter,Transform,"vtkTransform", vtkLinearTransform *,"");
- BBTK_INPUT(TubeFilter,Opacity,"Opacity",double,"");
+ BBTK_INPUT(TubeFilter,Opacity,"Opacity (default 1)",double,"");
BBTK_OUTPUT(TubeFilter,OutAxis,"Tube Actor",vtkProp3D *,"");
BBTK_END_DESCRIBE_BLACK_BOX(TubeFilter);
//=====
_delta_JSTG = (double) (np) / double (_sizePointsContour - 1); //Without the -1 the curve is not close
} else {
// _delta_JSTG = (double) (np-1) / double (_sizePointsContour ); //Without the -1 the curve is not close
- _delta_JSTG = (double) (np) / double (_sizePointsContour-1 ); //Without the -1 the curve is not close
+//EED 9/7/2016 _delta_JSTG = (double) (np) / double (_sizePointsContour-1 ); //Without the -1 the curve is not close
+ _delta_JSTG = (double) (np-1) / double (_sizePointsContour-1 ); //Without the -1 the curve is not close
}
//-----------------------------------------------------------------------------------------------------------
}
void manualContourModel::GetSpline_i_Point(int i, double *x, double *y, double *z) // virtal
{
GetSpline_t_Point(i*_delta_JSTG,x,y,z);
-}
+
// ----------------------------------------------------------------------------
//JSTG 25-02-08 ---------------------------------------------------------------
void manualContourModel::GetSpline_t_Point(double t, double *x, double *y, double *z)
{
- if (_lstPoints.size()==0)
+ if (_lstPoints.size()==0)
{
*x = 0;
*y = 0;