Find Jobs
Hire Freelancers

Bezier to X-Spline converter(repost)

$100-500 USD

Completed
Posted almost 16 years ago

$100-500 USD

Paid on delivery
Given a Bezier spline specified by an STL vector of Bezier segments (current control point position, outgoing tangent position, next point's incoming tangent position, next control point position), convert this to an XSpline in the form of an STL vector of control point location and tension. All Beziers specified with a given number of segments N MUST convert to an XSpline with M points. For example, any time you have a Bezier specified with 4 segments (just for example) it will convert into an XSpline with 19 points (number chosen just for example). X-splines are defined by Blanc, C. and Schlick, C. (1995), "X-splines : A Spline Model Designed for the End User", in Proceedings of SIGGRAPH 95. Conversion code should be written as a self-contained C++ LIBRARY completely disconnected from any test harness UI or system dependency. There should be 1 externally visible function call in the library. std::vector<XSplinePoints> ConvertBtoX(BezierSegments * b, int numberOfSegments) Each X-spline point is an x, y, and weight / tension. Weight goes from -1 to 1. At -1 the point behaves as in a cardinal spline. At 0 the point behaves as a corner. At 1 the point behaves as a B-spline point. In addition to the multi-platform conversion library, a test harness must be written on the platform of your choice which given a file containing strings defining a Bezier, it should draw both the Bezier and the resulting X-spline. Input lines would be in the form of cp.x<tab>cp.y<tab>ot.x<tab>ot.y<tab>it.x etc. see first paragraph Code must compile cleanly with no warnings on Windows, Mac, and Linux. We can supply the code to numerically evaluate a Bezier and an X-Spline so your harness would need only read the input file (a Bezier), call your code to convert to X-Spline and draw both. ## Deliverables Bonuses have been awarded in the past.
Project ID: 3889137

About the project

6 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$714 USD in 14 days
5.0 (24 reviews)
6.6
6.6
6 freelancers are bidding on average $480 USD for this job
User Avatar
See private message.
$425 USD in 14 days
5.0 (54 reviews)
7.2
7.2
User Avatar
See private message.
$1,275 USD in 14 days
5.0 (150 reviews)
7.1
7.1
User Avatar
See private message.
$212.50 USD in 14 days
5.0 (42 reviews)
5.6
5.6
User Avatar
See private message.
$127.50 USD in 14 days
4.9 (16 reviews)
3.7
3.7
User Avatar
See private message.
$127.50 USD in 14 days
4.9 (5 reviews)
2.4
2.4

About the client

Flag of UNITED STATES
United States
5.0
2
Member since Sep 21, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.