OZONE Asylum
Forums
OZONE
Calculating points along a curve
This page's ID:
28706
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Objective: Get a lot of coordinates along a curve, ideally, at a customizable interval (ie every 3px, 5px, 10px, etc along the line). I'm not quite sure how the best way is to do this, but here's my progression of thought: - Establish a sequence of points that the line passes through (no square corners, so the line isn't directly from point to point). - C# allows this via: Graphics.DrawCurve(Pen pen, Point[] points, int tension). - This will give me the control over the shape of the line (as much as I need anyways). The problem I have now is getting the coordinates at a much finer detail than the points I put down. I can define the line I want in as few as 5-6 points in some cases, however, I'd like to have 20-30 times that many points available (the output will go into another app that "follows" the detailed path). Anybody have any ideas? Whatever solution I end up using doesn't need to be tied to any particular language, I just used C# above because that's what I have in front of me right now and that seemed like a fairly straightforward way of stating the problem... Many many thanks to anyone who can enlighten me a little, LF -- Any sufficiently advanced bug is indistinguishable from a feature.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »