git-svn-id: svn://db.shs.com.ru/libs@693 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-12-12 18:00:05 +00:00
parent 947bf2ab93
commit c4effa14a5

View File

@@ -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;