作者:timer_open | 来源:互联网 | 2023-05-18 03:08
示范代码
gsKnotVector<> KV (-1, 0, 3,3, 1 ) ;
cout<<"A knot vector:"<
gsBSplineBasis<>::Ptr bsp = gsBSplineBasis<>::makeShared(KV);
// Sharing the same basis
gsBasis<>::Ptr bsp2 = bsp;
cout<<"A shared "<<*bsp < gsWriteParaview_basisFnct(0, *bsp2, "basis",1000);
gsWriteParaview( *bsp, "gsBasisView", 1000, true);
gsTensorBSplineBasis<2>::Ptr tbasis =
gsTensorBSplineBasis<2>::Ptr (new gsTensorBSplineBasis<2>(bsp->clone(), bsp->clone()) );
gsWriteParaview( *tbasis, "gsTensorBasisView", 1000, true);
效果