/[gzz]/gzz/gfx/librenderables/renderables.py
ViewVC logotype

Diff of /gzz/gfx/librenderables/renderables.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.88 by jvk, Tue Oct 1 12:53:15 2002 UTC revision 1.89 by jvk, Tue Oct 1 12:54:51 2002 UTC
# Line 613  rs = [ Line 613  rs = [
613    
614              // Do vert(pts, v) for any crossings and then vert(pts, v1)              // Do vert(pts, v) for any crossings and then vert(pts, v1)
615              void vert(vector<ZPt> &pts, ZPt v0, ZPt v1) {              void vert(vector<ZPt> &pts, ZPt v0, ZPt v1) {
                 cout << "vert:" << v0 << v1 << "\n";  
616                  ZPt v;                  ZPt v;
617                       if ((v0.x - x0) * (v1.x - x0) < 0) v = lerp(v0, v1, (x0 - v0.x) / (v1.x - v0.x)), v.x = x0;                       if ((v0.x - x0) * (v1.x - x0) < 0) v = lerp(v0, v1, (x0 - v0.x) / (v1.x - v0.x)), v.x = x0;
618                  else if ((v0.x - x1) * (v1.x - x1) < 0) v = lerp(v0, v1, (x1 - v0.x) / (v1.x - v0.x)), v.x = x1;                  else if ((v0.x - x1) * (v1.x - x1) < 0) v = lerp(v0, v1, (x1 - v0.x) / (v1.x - v0.x)), v.x = x1;

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26