git-svn-id: svn://db.shs.com.ru/libs@693 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -371,8 +371,8 @@ Mesh * Primitive::ellipsoidFrame(int segments_wl, int segments_h, float radius)
|
||||
ch = -cos((double)i / hseg * M_PI);
|
||||
cp.setZ(ch * radius);
|
||||
twl = sqrt(1. - ch * ch);
|
||||
crw = twl * radius / 2;
|
||||
crl = twl * radius / 2;
|
||||
crw = twl * radius;
|
||||
crl = twl * radius;
|
||||
int cvcnt = wlseg * 2;
|
||||
for (int j = 0; j < cvcnt; j++) {
|
||||
a = (double)j / (cvcnt - 1) * M_2PI;
|
||||
|
||||
Reference in New Issue
Block a user