首页 > > 详细

讲解CS 770/870、辅导C/C++编程、讲解Catmull-Rom、讲解C/C++语言 讲解留学生Processing|辅导Python程

2018/12/2 Asn09
https://unh.instructure.com/courses/47037/assignments/312464?module_item_id=1004571 1/2
Asn09
Due Dec 10 by 11:59pm Points 100 Submitting a file upload
Submit Assignment
CS 770/870 Assignment 9
Due Date : December 10th, 2018
NO LATE SUBMISSIONS WILL BE ACCEPTED
1. (50 points) You must design a segment of highway using a cubic curve. A car, traveling East, passes through point A=
(0 100) with speed s units/second, and then passes through point B=(100 0) traveling South, also with
speed s units/second.
1. Find the equation of a Bezier curve P(t) that describes the path of the car, which is C continuous, and smoothly
joins the two points A and B, such that P(0)=A and P(1)=B.
2. Is the curve C continuous everywhere?
3. Plot the curve for s=10, s=200, and s=1000.
4. Explain what happens when s=600 and t=0.5.
2. (50 points) Write an openGL program that draws your name (or any word of at least five letters), in cursive script. The
drawing should use, wherever possible, a single smooth, continuous curve (in other words, write as much as
possible without liing
your pen o
the paper). Compose the curve out of multiple cubic pieces joined together. I
suggest you use Catmull-Rom ("cardinal") splines.
Cubic Curves
I am providing two additional files which describe
Bezier curves
1
22018/12/2 Asn09
https://unh.instructure.com/courses/47037/assignments/312464?module_item_id=1004571 2/2
Catmull-Rom splines.
Turn in Your Work
On or before the due date, you should turn in two files, which must be named exactly as follows:
road.pdf : this answers the first question
name.cpp : this answers the second question
For the second question, you should download the starting code for assignment 1, and modify the main file to use
Catmull-Rom splines instead of straight lines

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!