• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to import drawing paths into a Cocoa application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to import drawing paths into a Cocoa application?


  • Subject: Re: How to import drawing paths into a Cocoa application?
  • From: "John C. Randolph" <email@hidden>
  • Date: Sat, 26 Apr 2008 19:24:20 -0700


On Apr 21, 2008, at 5:35 PM, Graham Cox wrote:

- (NSPoint) pointOnPathAtLength:(float) length slope:(float*) slope;

I notice that your lengthOfBezier() function does an approximation similar to what we'd get in postscript by executing flattenpath and then adding up the lengths of the resulting line segments.


I've asked several math majors over the years if they could give me an exact function for the length of a bezier curve. They've generally told me it was possible, but none of them actually produced it.

If there are any mathematicians on this list who can solve for the length of a bezier cubic spline, please enlighten me!

-jcr

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to import drawing paths into a Cocoa application?
      • From: Jens Alfke <email@hidden>
    • Re: How to import drawing paths into a Cocoa application?
      • From: Graham Cox <email@hidden>
References: 
 >How to import drawing paths into a Cocoa application? (From: Steve Weller <email@hidden>)
 >Re: How to import drawing paths into a Cocoa application? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSBezier Artifacts
  • Next by Date: Problem with bindings to user defaults
  • Previous by thread: Re: How to import drawing paths into a Cocoa application?
  • Next by thread: Re: How to import drawing paths into a Cocoa application?
  • Index(es):
    • Date
    • Thread