Extracts the surface border information from the terrain surface.
public ObjectIdCollection ExtractBorder( SurfaceExtractionSettingsType settingsType )
Public Function ExtractBorder ( settingsType As SurfaceExtractionSettingsType ) As ObjectIdCollection
public: virtual ObjectIdCollection^ ExtractBorder( SurfaceExtractionSettingsType settingsType ) sealed
1// Setup: creates a new, random surface 2// 3TinSurface surface = CreateRandomSurface("Example Surface"); 4ObjectIdCollection borders; 5borders = surface.ExtractBorder(SurfaceExtractionSettingsType.Plan); 6write("# of surface borders: " + borders.Count + "\n"); 7foreach (ObjectId borderId in borders) 8{ 9 // Borders are Polyline3d objects: 10 Polyline3d border = borderId.GetObject(OpenMode.ForRead) as Polyline3d; 11 write("Surface border vertices:\n"); 12 foreach (ObjectId vertexId in border) 13 { 14 PolylineVertex3d vertex3d = vertexId.GetObject(OpenMode.ForRead) as PolylineVertex3d; 15 write(String.Format(" - Border vertex at: {0}\n", 16 vertex3d.Position.ToString())); 17 } 18}
1!ERROR: See log file!