I'm pretty sure you can do this with other logic, but the main reason we create that matrix with 0 values first is because in the for loop, you have: xbezier = xbezier + something. You need xbezier to be declared beforehand. The reason we populate it with zeros, is that since we are adding stuff to xbezier every loop, an initial value of 0 will not change anything. If we were multiplying, we would use 1s instead. Hope this helps.
Ya, by the way thank u for video, I was trying to hard code for b spline after coding all intervals ,I was not able to get or understand that basis function for different values of u.. How and what...... Please I beg u do a video on B spline hard code in python.. Because I am m tech student. I want doing projects on IGA SO I need to do it... And if have any video or materials of calculation of b spline do suggest.
@vasanthkumarkallannavar7594 I'm preparing a series of videos for B-splines, but is a tough concept to grasp, so as soon as I get it working I'll post it.
my profesor couldnt explain it in 1.5h, and you did that in less than 10 minutes, great job
This is beautiful...
@ 3:27 why creation of matrix of zero, can we skip it? use other logic there?
I'm pretty sure you can do this with other logic, but the main reason we create that matrix with 0 values first is because in the for loop, you have:
xbezier = xbezier + something.
You need xbezier to be declared beforehand. The reason we populate it with zeros, is that since we are adding stuff to xbezier every loop, an initial value of 0 will not change anything. If we were multiplying, we would use 1s instead. Hope this helps.
Ya, by the way thank u for video, I was trying to hard code for b spline after coding all intervals ,I was not able to get or understand that basis function for different values of u.. How and what...... Please I beg u do a video on B spline hard code in python.. Because I am m tech student. I want doing projects on IGA SO I need to do it... And if have any video or materials of calculation of b spline do suggest.
@vasanthkumarkallannavar7594 I'm preparing a series of videos for B-splines, but is a tough concept to grasp, so as soon as I get it working I'll post it.