Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-01 06:58:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-01 06:58:44 +0400
commit9da712a581f59fc7794151fe5f07a4fb396881f2 (patch)
tree48ad4aee34f1b0ccb187f4f6caaa7d5109791c95 /source/blender/blenkernel/intern/curve.c
parentf48b9062619ecc685e81dca12d588f5524efe41d (diff)
replace dutch variable name 'aantal' with 'tot'
Diffstat (limited to 'source/blender/blenkernel/intern/curve.c')
-rw-r--r--source/blender/blenkernel/intern/curve.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c
index 07e450479e4..7aa28c3f681 100644
--- a/source/blender/blenkernel/intern/curve.c
+++ b/source/blender/blenkernel/intern/curve.c
@@ -580,19 +580,19 @@ void addNurbPointsBezier(Nurb *nu, int number)
/* ~~~~~~~~~~~~~~~~~~~~Non Uniform Rational B Spline calculations ~~~~~~~~~~~ */
-static void calcknots(float *knots, const short aantal, const short order, const short flag)
+static void calcknots(float *knots, const short tot, const short order, const short flag)
{
/* knots: number of pnts NOT corrected for cyclic */
- const int t= aantal + order;
+ const int tot_order= tot + order;
float k;
int a;
switch(flag & (CU_NURB_ENDPOINT|CU_NURB_BEZIER)) {
case CU_NURB_ENDPOINT:
k= 0.0;
- for(a=1;a<=t;a++) {
+ for(a=1; a <= tot_order; a++) {
knots[a-1]= k;
- if(a>=order && a<=aantal) k+= 1.0f;
+ if(a >= order && a <= tot) k+= 1.0f;
}
break;
case CU_NURB_BEZIER:
@@ -600,15 +600,15 @@ static void calcknots(float *knots, const short aantal, const short order, const
* if this is not enforced, the displist will be corrupt */
if(order==4) {
k= 0.34;
- for(a=0;a<t;a++) {
+ for(a=0; a < tot_order; a++) {
knots[a]= floorf(k);
k+= (1.0f/3.0f);
}
}
else if(order==3) {
k= 0.6f;
- for(a=0;a<t;a++) {
- if(a>=order && a<=aantal) k+= 0.5f;
+ for(a=0; a < tot_order; a++) {
+ if(a >= order && a <= tot) k+= 0.5f;
knots[a]= floorf(k);
}
}
@@ -617,7 +617,7 @@ static void calcknots(float *knots, const short aantal, const short order, const
}
break;
default:
- for(a=0;a<t;a++) {
+ for(a=0; a < tot_order; a++) {
knots[a]= (float)a;
}
break;