diff --git a/src/cylinder.c b/src/cylinder.c index b95e9d539ee8b3302d408963f785b3a3bc1fc36f..605e1f82fde282fd8197ed25c4bd5f5415eff438 100644 --- a/src/cylinder.c +++ b/src/cylinder.c @@ -23,7 +23,7 @@ static int nbPtsLoop=0; \param coord the coordinates x y z of this point (output) \return 0 for success */ -inline static int computeCoordCylinderMain(int i, double *coord) { +int computeCoordCylinder(int i, double *coord) { static double angleStep=0. ; static double zStep=0. ; double theta ; @@ -51,17 +51,6 @@ inline static int computeCoordCylinderMain(int i, double *coord) { return 0 ; } -/*! \brief Computes coordinates of point number 'i' on the object (main cylinder or detail). - - \a i should be in [0, nbPts[. - \param i the number of the point in the detail (input) - \param coord the coordinates x y z of this point (output) - \return 0 for success -*/ -int computeCoordCylinder(int i, double *coord) { - return computeCoordCylinderMain(i, coord); -} - double* createCylinder(void) { double* result = MpfCalloc((size_t)3 * nbPts, sizeof(double)); int i, ierr; @@ -80,13 +69,6 @@ int initCylinder(int *argc, char ***argv) { int ierr ; double coord[3] ; - if (MpfArgGetDouble(argc, *argv, 1, "-radius", &radius)) { - printf("Reading radius = %f\n", radius) ; - } - if (MpfArgGetDouble(argc, *argv, 1, "-height", &height)) { - printf("Reading height = %f\n", height) ; - } - /* Calcule les coordonnees d'un point, afin de fixer meshStep (qui peut servir a fixer lambda) */ ierr=computeCoordCylinder(0, &(coord[0])) ; CHKERRQ(ierr) ;