Re: Bezier drawing tool suggestions?
Re: Bezier drawing tool suggestions?
- Subject: Re: Bezier drawing tool suggestions?
- From: Greg Titus <email@hidden>
- Date: Sat, 4 Mar 2006 22:09:19 -0800
On Mar 4, 2006, at 9:19 PM, John C. Randolph wrote:
On Mar 4, 2006, at 8:04 PM, Scott Thompson wrote:
1) Create a class to represent a bezier curve. The class
represents the curve as point triples. Each triple represents a
"left-side" control point, an on-curve point, and a right-side
control point. The class also has to deal with things like
"isClosed" (though if your shapes are always closed... that could
simplify things a bit.
You need four points to define a Bezier cubic spline. What kind
of curve are you describing?
I'm not Scott, but presumably:
The fourth point to define the cubic spline is the on-curve point for
the previous triple (or next triple, if you want to write the code
that way). If the shape isn't closed you'll also need a single start
point (or end point) in addition to the triples.
- Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden