skip to main | skip to sidebar

Whorld

Development notes for the Whorld geometric visualizer/VJ software/Freeframe plugin.

Saturday, October 08, 2005

Bézier curves


in Draw:
#if 1
m_pa[i] = m_pa[0]; // close the shape
Polyline(dc, m_pa, sides + 1);
#else
CPoint pt2[200];
int j = 0;
for (int i = 0; i < sides; i++) {
pt2[j++] = m_pa[i];
if (i & 1)
pt2[j++] = CPoint(m_pa[i].x, m_pa[i].y);
}
pt2[j++] = pt2[0];
PolyBezier(dc, pt2, j);
#endif
Posted by Chris Korda at 12:02 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2025 (18)
    • ►  March (10)
    • ►  February (8)
  • ►  2009 (2)
    • ►  August (1)
    • ►  July (1)
  • ►  2008 (4)
    • ►  April (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2006 (33)
    • ►  June (4)
    • ►  May (4)
    • ►  April (8)
    • ►  March (5)
    • ►  February (9)
    • ►  January (3)
  • ▼  2005 (39)
    • ►  December (2)
    • ►  November (2)
    • ▼  October (11)
      • objects needing more comments
      • adding HLS color to existing snapshots
      • Movie format could save space
      • array of CArrays not optimized correctly
      • MainFrame bloat
      • odd shift
      • ring list size limit
      • Bézier curves
      • scene rotation
      • benchmarks for movie recording
      • glitch #1: Jeff & Sean
    • ►  September (5)
    • ►  August (7)
    • ►  July (8)
    • ►  June (2)
    • ►  April (2)

Links

  • Whorld
  • FFRend
  • Mixere
  • Church of Euthanasia

About Me

My photo
Chris Korda
View my complete profile