Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411507 Posts in 69374 Topics- by 58429 Members - Latest Member: Alternalo

April 26, 2024, 03:27:05 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Bezier surface implementation
Pages: [1]
Print
Author Topic: Bezier surface implementation  (Read 696 times)
diegzumillo
Level 10
*****


This avatar is so old I still have a some hair


View Profile WWW
« on: September 15, 2017, 04:39:23 PM »

Has anyone implemented this? It seems pretty straight forward from its Wikipedia page but for some reason my implementation doesn't work. The points are all deformed and don't stretch all the way to the corners.

I suspect my naive implementation of the Bernstein polynomials is the problem. In theory it all makes sense but when it comes to numerical evaluation there's always a catch, like the order of operations. But I really have no idea.

Edit: Interesting fact. If I move ALL control points the generated surface seems to be attracted to a fixed point in space
« Last Edit: September 15, 2017, 04:50:45 PM by diegzumillo » Logged

diegzumillo
Level 10
*****


This avatar is so old I still have a some hair


View Profile WWW
« Reply #1 on: September 15, 2017, 06:37:44 PM »

Ah, nevermind. I was just being dumb. Forgot to subtract 1 from a variable  Facepalm
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic