LR-splines  0.5
makeGeom.cpp
Go to the documentation of this file.
00001 #include <iostream>
00002 #include <vector>
00003 #include "LRSpline/LRSplineSurface.h"
00004 
00005 using namespace std;
00006 using namespace Go;
00007 using namespace LR;
00008 
00009 int main(int argc, char **argv) {
00010         int p1 = 3;
00011         int p2 = 3;
00012         int n1 = 14;
00013         int n2 = 14;
00014         double knot[] = {0, 0, 3, 3};
00015         double cp[]   = {0,0, 1,0, 0,1, 1,1};
00016         std::vector<double> newKnots ;
00017         for(double d=.25; d<3; d+=.25)
00018                 newKnots.push_back(d);
00019         SplineSurface ss(2,2, 2,2, knot, knot, cp, 2);
00020         ss.raiseOrder(p1-2, p2-2);
00021         ss.insertKnot_u(newKnots);
00022         ss.insertKnot_v(newKnots);
00023         
00024 
00025         LRSplineSurface lr(&ss);
00026         lr.insert_const_v_edge(1.5, 1.0, 2.0, 3);
00027         cout << lr;
00028 }