Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: buffer problems with CFile Pin
Krauze29-Mar-10 3:53
Krauze29-Mar-10 3:53 
QuestionRe: buffer problems with CFile Pin
David Crow29-Mar-10 4:30
David Crow29-Mar-10 4:30 
AnswerRe: buffer problems with CFile Pin
Vaclav_29-Mar-10 5:38
Vaclav_29-Mar-10 5:38 
GeneralRe: buffer problems with CFile Pin
Krauze29-Mar-10 18:20
Krauze29-Mar-10 18:20 
QuestionHow to add command buttons to listbox? Pin
space03528-Mar-10 16:32
space03528-Mar-10 16:32 
AnswerRe: How to add command buttons to listbox? Pin
Adam Roderick J28-Mar-10 17:37
Adam Roderick J28-Mar-10 17:37 
GeneralRe: How to add command buttons to listbox? Pin
space0359-Apr-10 22:37
space0359-Apr-10 22:37 
QuestionPseudo Code for B Spline implementation Pin
Chidori-chan28-Mar-10 15:35
Chidori-chan28-Mar-10 15:35 
Hi all--

I've got a program where you click and add points to make a polygon using a linked list, and now I want it where by pressing a button it will take the points on the polygon and make it a cubic b spline curve. However I have no experience with the b spline curves and am having trouble with were to start. So I was wondering if you would be able to help me with the pseudo code for this, using C so that I can better understand what I'm trying to do. Here is what I have come up with so far (which isn't much unfortunately):

Create a drawCurve function that traverses the linked list in order.

Take the first four points to draw the spline curve, then the next one over each time.

[insert how to do the math here (of which I am confused about)]

Use a state machine to implement. So pressing a button of my choice will change between the drawing polygon state and the draw curve state.


Thank you very much for your help.
AnswerRe: Pseudo Code for B Spline implementation Pin
LunaticFringe28-Mar-10 15:46
LunaticFringe28-Mar-10 15:46 
GeneralRe: Pseudo Code for B Spline implementation Pin
Chidori-chan28-Mar-10 15:49
Chidori-chan28-Mar-10 15:49 
AnswerRe: Pseudo Code for B Spline implementation Pin
loyal ginger28-Mar-10 15:51
loyal ginger28-Mar-10 15:51 
GeneralRe: Pseudo Code for B Spline implementation Pin
Chidori-chan28-Mar-10 15:55
Chidori-chan28-Mar-10 15:55 
Generalregarding creating databse Pin
kirancgi27-Mar-10 23:40
kirancgi27-Mar-10 23:40 
GeneralRe: regarding creating databse Pin
Richard MacCutchan28-Mar-10 1:12
mveRichard MacCutchan28-Mar-10 1:12 
JokeRe: regarding creating databse Pin
David Crow28-Mar-10 16:22
David Crow28-Mar-10 16:22 
JokeRe: regarding creating databse Pin
Richard MacCutchan28-Mar-10 22:58
mveRichard MacCutchan28-Mar-10 22:58 
JokeRe: regarding creating databse Pin
Rajesh R Subramanian28-Mar-10 23:00
professionalRajesh R Subramanian28-Mar-10 23:00 
JokeRe: regarding creating databse Pin
Richard MacCutchan28-Mar-10 23:05
mveRichard MacCutchan28-Mar-10 23:05 
JokeRe: regarding creating databse Pin
LittleYellowBird28-Mar-10 23:43
LittleYellowBird28-Mar-10 23:43 
JokeRe: regarding creating databse Pin
Richard MacCutchan28-Mar-10 23:51
mveRichard MacCutchan28-Mar-10 23:51 
JokeRe: regarding creating databse Pin
CPallini28-Mar-10 23:28
mveCPallini28-Mar-10 23:28 
GeneralRe: regarding creating databse Pin
KingsGambit28-Mar-10 9:57
KingsGambit28-Mar-10 9:57 
QuestionVariables not the same as input file. Pin
Frank Robertson27-Mar-10 18:06
Frank Robertson27-Mar-10 18:06 
AnswerRe: Variables not the same as input file. Pin
Garth J Lancaster27-Mar-10 21:14
professionalGarth J Lancaster27-Mar-10 21:14 
AnswerRe: Variables not the same as input file. Pin
Richard MacCutchan28-Mar-10 1:32
mveRichard MacCutchan28-Mar-10 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.