Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 311c6323 authored by FELŠÖCI Marek's avatar FELŠÖCI Marek
Browse files

Remove useless function from cylinder computation

parent b006ddd1
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ static int nbPtsLoop=0; ...@@ -23,7 +23,7 @@ static int nbPtsLoop=0;
\param coord the coordinates x y z of this point (output) \param coord the coordinates x y z of this point (output)
\return 0 for success \return 0 for success
*/ */
inline static int computeCoordCylinderMain(int i, double *coord) { int computeCoordCylinder(int i, double *coord) {
static double angleStep=0. ; static double angleStep=0. ;
static double zStep=0. ; static double zStep=0. ;
double theta ; double theta ;
...@@ -51,17 +51,6 @@ inline static int computeCoordCylinderMain(int i, double *coord) { ...@@ -51,17 +51,6 @@ inline static int computeCoordCylinderMain(int i, double *coord) {
return 0 ; 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* createCylinder(void) {
double* result = MpfCalloc((size_t)3 * nbPts, sizeof(double)); double* result = MpfCalloc((size_t)3 * nbPts, sizeof(double));
int i, ierr; int i, ierr;
...@@ -80,13 +69,6 @@ int initCylinder(int *argc, char ***argv) { ...@@ -80,13 +69,6 @@ int initCylinder(int *argc, char ***argv) {
int ierr ; int ierr ;
double coord[3] ; 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) */ /* Calcule les coordonnees d'un point, afin de fixer meshStep (qui peut servir a fixer lambda) */
ierr=computeCoordCylinder(0, &(coord[0])) ; CHKERRQ(ierr) ; ierr=computeCoordCylinder(0, &(coord[0])) ; CHKERRQ(ierr) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment