bcholmes: (java)
[personal profile] bcholmes

Do any of you understand splines well? Specifically Cubic B-Curves?

I have some data that I'm trying to render in SVG. My data looks like this:

  • Curve type (in this case, Cubic B-Spline)
  • Resolution (as a float)
  • A start parameter (float) and an end parameter (float)
  • An array of points (float x and float y)

I'm trying to figure out how to represent this information as an SVG path. Specifically, SVG uses "control points" to indicate how the curve is formed. But I don't understand these curves well enough to figure out the math.

(no subject)

Date: 2012-02-25 06:45 am (UTC)
jiawen: NGC1300 barred spiral galaxy, in a crop that vaguely resembles the letter 'R' (Default)
From: [personal profile] jiawen
I just know how to use vector programs like Inkscape. Sorry, wish I could help.

Profile

bcholmes: (Default)
BC Holmes

February 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
2324252627 28 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Powered by Dreamwidth Studios