Hi everybody,
I have a question that is i want to get cells on gridded surface, i get show gridded in display surface and get all it.
I'm using by C.#.
Thanks so much
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
OK, you have TinSurface displaying the Gridded. The only thing I see is to use the ExtractGridded() method to extract the grid cells. There is an example of this in the help:
// Extract a grid from the surface and print information about it: // ObjectIdCollection gridlines; gridlines = surface.ExtractGridded(SurfaceExtractionSettingsType.Plan); write("# of extracted grid lines extracted: " + gridlines.Count + "\n");1int i = 1; foreach (ObjectId gridLineId in gridlines) { // Gridlines are polyline3d objects Polyline3d gridline = gridLineId.GetObject(OpenMode.ForRead) as Polyline3d; write(String.Format(" Gridline #{0}: Length:{1} Start:{2} End:{3}\n", i, gridline.Length, gridline.StartPoint.ToString(), gridline.EndPoint.ToString())); i++; }
I'm not sure I can help any further. Using the ExtractGridded() returns 3dPoly's that run horizontally and vertically between the edges of the surface. There are no vertices present for where they intersect one another, instead having vertices at the intersection with the TIN lines. It will take far more time than I have available to create the tools needed to create the cell boundaries. And what to do at the non-square edge cells? Sorry, and good luck!
Thanks for your support to me, i think i will another way, because i want to get volume by polygon follow gridded on surface.