search for: npolygons

Displaying 1 result from an estimated 1 matches for "npolygons".

Did you mean: polygons
2013 Mar 10
1
misc3d Contour export to vtk
...intf("%f %f %f %f %f %f %f %f %f\n", dat[,1], dat[,2], dat[,3], dat[,4], dat[,5], dat[,6], dat[,7], dat[,8], dat[,9]), file = f, sep="") mat <- matrix(0:(n3-1), ncol = 3, byrow=TRUE) print(n) ### connect the triangles cat(sprintf("\nPOLYGONS %d %d\n", n, n3), file = f, sep="") cat(sprintf("3 %d %d %d\n", mat[,1], mat[, 2], mat[, 3]), file = f, sep="" ) close(f) Any help would be appreciated (especially if someone has already done this). I know I'm using some old legacy formats for vtk, but...