diff options
author | Jiri Hnidek <jiri.hnidek@tul.cz> | 2003-09-05 17:54:22 +0400 |
---|---|---|
committer | Jiri Hnidek <jiri.hnidek@tul.cz> | 2003-09-05 17:54:22 +0400 |
commit | 5d2f98f440f8ad6fbfb43e96a6db056853683110 (patch) | |
tree | ba4bc47a37b1da946aec7361050c666eaabf1ff1 /source/blender/src/editmball.c | |
parent | a09e5a7f2f3ae81f504106eeb62373bb99b39b51 (diff) |
- improved polygonization (linear interpolation) of Implicit Surfaces (Meta)
- added new MetaElem types (plane, elipsoid and cube) old TubeX, TubeY and TubeZ will not be supported
- new buttons in Edit button window (dx, dy, dz)
- added new items into the headers menu and toolbox menu
more details at: http://blender.webpark.cz
Diffstat (limited to 'source/blender/src/editmball.c')
-rw-r--r-- | source/blender/src/editmball.c | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/source/blender/src/editmball.c b/source/blender/src/editmball.c index 0107d4d6195..17c669a4048 100644 --- a/source/blender/src/editmball.c +++ b/source/blender/src/editmball.c @@ -172,12 +172,37 @@ void add_primitiveMball(int dummy_argument) ml->x= cent[0]; ml->y= cent[1]; ml->z= cent[2]; - ml->rad= 1.0; + ml->rad= 2.0; ml->lay= 1; ml->s= 2.0; - ml->len= 1.0; - ml->expx= ml->expy= ml->expz= 2.0; ml->flag= SELECT; + + switch(dummy_argument) { + case 1: + ml->type = MB_BALL; + ml->expx= ml->expy= ml->expz= 1.0; + break; + case 2: + ml->type = MB_TUBE; + ml->expx= ml->expy= ml->expz= 1.0; + break; + case 3: + ml->type = MB_PLANE; + ml->expx= ml->expy= ml->expz= 1.0; + break; + case 4: + ml->type = MB_ELIPSOID; + ml->expx= 1.2f; + ml->expy= 0.8f; + ml->expz= 1.0; + break; + case 5: + ml->type = MB_CUBE; + ml->expx= ml->expy= ml->expz= 1.0; + break; + default: + break; + } lastelem= ml; |