G1 G2 G3 Curve Mathematics?

 From:  Michael Gibson
6282.7 In reply to 6282.5 
Hi OSTexo,

> Is there some sort of common equation that defines a NURBS curve no matter what its "G" ness is?

Yeah there is, but it's kind of more like a mechanism that involves several different pieces of data which then together form the curve.

There's a "knot vector" which is a sequence of numbers, there is one formula that takes the relative spacing of these numbers and then yields "basis functions". The basis functions define how much of each control point for each span of the curve factors into the curve's evaluated position.

Control points can be made up of x, y, z, and also "weight" values. When the weight value is used, it makes the curve what's called a "rational" curve, where the x,y,z,w values form a kind of 4 dimensional curve and it's projected into 3D space by dividing each of x y and z by the weight value. This division part of the process allows for a conic section to result when certain weight values are used.

The whole process of these equations is more like a mechanism that describes how control points are averaged together as you move along the curve. It's not quite like the equations by themselves form a specific shape like I think you're kind of thinking about.


> If you would imagine a bowl shape that has a different set of inner and outer curves
> I'm trying to find out if a relationship or some ratio can be mathematically expressed
> between those two curve sets that are revolved to form the bowl.

There isn't anything inherent in the NURBS formulation itself that says anything about connections like this between inner and outer curves. If there is a connection between them, it's due to some higher level process that was guiding the positioning of all the control points of all the various separate pieces of geometry involved.

Reverse engineering something like that is probably going to involve evaluating points on the different pieces of geometry and having some process of comparing them with each other, it's not likely that some inherent equation in the NURBS formulation itself is going to do anything for this in particular.

- Michael