For introduction of nurbs calculator, please read previous post.

In this and further tutorials I’ll create some linear, quadratic and cubic curves, using nurbs calculator. You can create a nurbs curve of any degree, but generally, curves of degree 2 and 3 are used, because higher degree curves requires more control points and so it becomes difficult to control the shape of the curve. A nurbs curve needs at least degree+1 control points. So if the degree of the curve is 100, then it requires minimum 101 control points and 202 knot values, to render the curve and it is very difficult to correctly position so many control points. A curve having degree 1 is called as linear (that means it is a line), having degree 2 is called as quadratic and having degree 3 is called as cubic

**Find out the coordinates of mid point of a line: **

This is a very generic and simple problem and you don’t have to be an engineer to solve this 🙂 . Let’s assume that there is line in XY plane and the coordinates of the start points are (5.3, 6.4) and end point are (2.5, 4.3). Since it is in XY plane, so z coordinate will be 0. How can we find out the coordinates of the middle point of this line ? If you know the parametric equation of line, then it could be easy for you, but with the help of nurbs calculator you can do this in just few steps, even if you don’t know about parametric equation.

- Go to the website http://nurbscalculator.in
- Enter degree = 1
- Remove all control points (except two points, which are required to draw a line) and enter the values of x and y coordinates of start and end points. Keep the value of z=0 and w=1.
- Make sure that ‘clamped at start’ and ‘clamped at end’ are checked.
- Enter the value of u parameter as 0.5, because we want to evaluate the mid point.
- The coordinates of the point will shown in front of ‘Evaluated point’ and the point will be displayed in yellow colour in the webGL window.

See the below image for illustration.

You can evaluate the point on the line for any u value between 0 and 1, by moving the slider.

**What is the parametric equation of line?**

If the coordinates of start point of a line are (x_{1}, y_{1}) and end point are (x_{2}, y_{2}), then the parametric equation of line is given by –

x = (1-t)*x_{1} + t*x_{2}

y = (1-t)*y_{1} + t*y_{2}

which can be written in simplified form as –

x = x_{1} + (x_{2} – x_{1}) * t

y = y_{1} + (y_{2} – y_{1}) * t

where t is a parameter whose value is 0 at start point and 1 at end point.

Please share this post with your friends and colleagues, so that it can reach to the person who is new to geometric modelling and computer graphics.

Follow nurbscalculator on WordPress.com

Very nice, thanks.

LikeLiked by 1 person

It would be nice, if your blog had:

Search

Archive

LikeLike

Also, there is no Follow button, as this functionality gives other people, the possibility to follow your blog by their eMail.

LikeLike

Sure and thanks for your comments. I’m new to wordpress blogs, so i left most of the settings to its default. I’ll try to find out the settings for ‘Follow’ button. Thanks for pointing it out.

LikeLike

One workaround for ‘Follow’ button problem is that go to this link – https://wordpress.com/tag/nurbs , scroll down to the post that you want to follow and click on follow button at the top-right corner of that post.

LikeLike