info-inventor
[Top] [All Lists]

NURBS & Conic Sections

To: info-inventor <info-inventor@xxxxxxxxxxx>
Subject: NURBS & Conic Sections
From: Stuart Clark <srclark@xxxxxxxxxxxxxx>
Date: Tue, 15 Jan 2002 05:59:52 +1100
Sender: owner-inventor@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
I know it should be easy to draw circles using Bezier curves in Open Inventor. I have looked at some literature and it says for example that a quadratic rational bezier curve can represent a circle - the middle weighting should be cos(theta) where 2 * theta is the angular extension of the arc. Yet I seem to get only parabolas. The closest one looking like a circle has a middle point weighting of one. ??? I am lost.

Any help would be appreciated. Here are the values I am using:

float pts[3][4] = {
               {1.0,0.0,1.0,1.0},
               {1.0,1.0,1.0,0.707},
               {0.0,1.0,1.0,1.0}};

float knots [6] = {0,0,0,1,1,1};

Thanks in advance,

Stuart



<Prev in Thread] Current Thread [Next in Thread>