private static double[,] GetBsurfaceWeights(Snap.NX.Face face) { UFModl.Bsurface bsurfaceData = GetBsurfaceData(face); int num = bsurfaceData.num_poles_u; int num2 = bsurfaceData.num_poles_v; double[,] numArray = new double[num, num2]; for (int i = 0; i < num2; i++) { for (int j = 0; j < num; j++) { int num5 = j + (i * num); numArray[j, i] = bsurfaceData.poles[num5, 3]; } } return(numArray); }
private static Snap.Position[,] GetBsurfacePoles(Snap.NX.Face face) { UFModl.Bsurface bsurfaceData = GetBsurfaceData(face); int num = bsurfaceData.num_poles_u; int num2 = bsurfaceData.num_poles_v; Snap.Position[,] positionArray = new Snap.Position[num, num2]; for (int i = 0; i < num2; i++) { for (int j = 0; j < num; j++) { int num5 = j + (i * num); positionArray[j, i].X = bsurfaceData.poles[num5, 0]; positionArray[j, i].Y = bsurfaceData.poles[num5, 1]; positionArray[j, i].Z = bsurfaceData.poles[num5, 2]; } } return(positionArray); }
private static UFModl.Bsurface GetBsurfaceData(Snap.NX.Face face) { UFModl.Bsurface bsurf = new UFModl.Bsurface(); Globals.UFSession.Modl.AskBsurf(face.NXOpenTag, out bsurf); return(bsurf); }