169 |
|
|
170 |
void v(ZVec p) const { |
void v(ZVec p) const { |
171 |
if(flags & 4) { |
if(flags & 4) { |
172 |
glColor3f(1, p.z / 100, p.z / 100); |
glColor3f(1, p.z / 800, p.z / 800); |
173 |
} |
} |
174 |
glVertex(p); |
glVertex(p); |
175 |
} |
} |
176 |
|
|
177 |
void vl(ZVec p) const { |
void vl(ZVec p) const { |
178 |
if(flags & 4) { |
if(flags & 4) { |
179 |
glColor3f(0,p.z / 100, p.z / 100); |
glColor3f(0,p.z / 800, p.z / 800); |
180 |
} |
} |
181 |
glVertex(p); |
glVertex(p); |
182 |
} |
} |
285 |
|
|
286 |
float csize = crad(t0); |
float csize = crad(t0); |
287 |
|
|
288 |
Conn conn1(thick_t, angle_t, t0, t1, d1); |
Conn conn1(thick_t, angle_t, t0, t1, 0.5 * (p1 - ctr).length()); |
289 |
Conn conn2(thick_t, angle_t, t0, t2, d2); |
Conn conn2(thick_t, angle_t, t0, t2, 0.5 * (p2 - ctr).length()); |
290 |
|
|
291 |
float th1 = conn1.th; |
float th1 = conn1.th; |
292 |
float th2 = conn2.th; |
float th2 = conn2.th; |