The TinSurface class represents a Triangulated Irregular Network (TIN) surface in Civil3D, the most common surface type for terrain modeling.
Autodesk.Civil.DatabaseServices
System.Object
└─ RXObject
└─ DBObject
└─ Entity
└─ Surface
└─ TinSurface
Inherits all properties from Surface
| Method | Return Type | Description |
|---|---|---|
GetTriangles() |
Triangle[] |
Gets all triangles in the surface |
GetPoints() |
SurfacePoint[] |
Gets all surface points |
using (Transaction tr = civilDoc.Database.TransactionManager.StartTransaction())
{
TinSurface tinSurf = tr.GetObject(surfaceId, OpenMode.ForRead) as TinSurface;
GeneralSurfaceProperties props = tinSurf.GetGeneralProperties();
ed.WriteMessage($"\nTIN Surface: {tinSurf.Name}");
ed.WriteMessage($"\nNumber of Points: {props.NumberOfPoints}");
ed.WriteMessage($"\nNumber of Triangles: {props.NumberOfTriangles}");
ed.WriteMessage($"\nMin Elevation: {props.MinimumElevation:F2}");
ed.WriteMessage($"\nMax Elevation: {props.MaximumElevation:F2}");
tr.Commit();
}- Surface - Base class
- GridSurface - Alternative surface type
- CivilDocument - Container