#include "stdafx.h" // for bspline surface #include #include #include ; #include ; //end of bspline surface void CImportExportDoc::OnArchHw() { // TODO: Add your command handler code here //return 0; TColgp_Array2OfPnt poles(0,7,0,5);//ucol,vrow TColStd_Array1OfReal UKnots(0,12); TColStd_Array1OfReal VKnots(0,10); TColStd_Array1OfReal UKnots1(0,5); TColStd_Array1OfReal VKnots1(0,3); UKnots1.SetValue(0,0);UKnots1.SetValue(1,1);UKnots1.SetValue(2,2);UKnots1.SetValue(3,3);UKnots1.SetValue(4,4);UKnots1.SetValue(5,5); VKnots1.SetValue(0,0);VKnots1.SetValue(1,1);VKnots1.SetValue(2,2);VKnots1.SetValue(3,3); TColStd_Array1OfInteger UMults(0,5); UMults.SetValue(0,4);UMults.SetValue(1,1);UMults.SetValue(2,1);UMults.SetValue(3,1);UMults.SetValue(4,1); UMults.SetValue(5,4); TColStd_Array1OfInteger VMults(0,3); VMults.SetValue(0,4);VMults.SetValue(1,1);VMults.SetValue(2,1); VMults.SetValue(3,4); int n=7;//(ctr pnts-1) int k=4;//degree+1 int n1=5;int k1=4;int t=0;int a=0;int b=0; for (int j = 0;j<=n+k;j++) { if (jn) { t = n-k+2;a++; UKnots.SetValue(a,t); } } UKnots.SetValue(a,t); for (int s = 0;s<=n1+k1;s++) { if (sn1) { t = n1-k1+2;b++; VKnots.SetValue(b,t); } } cout<<"\n"<SetColor(aShape,Quantity_NOC_YELLOW,Standard_False);//projected wire myAISContext->Display(aShape,Standard_False); // TopoDS_Shape sh=Surf; // Handle(Geom_Surf) plz= new Geom_Surf(Surf); // Handle (AIS_Shape) ais= new AIS_Shape(sh); // Handle(Geom_Surface) Sur = new Geom_Surface(Surf); // Surf.Bounds(0,2,0,1); // myAISContext->DisplayAll(1,1);//>Display(Surf); //Standard_Integer d=Surf->NbVPoles();Standard_Integer e=Surf.NbUPoles(); //cout<<"\n\n No of poles"<<"\t"<