Rasterizes the current triangulation.
Namespace:
ceometric.ComputationalGeometryAssembly: ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
| C# |
|---|
public void RasterizeCurrentTriangulation( double xSpacing, double ySpacing ) |
| Visual Basic (Declaration) |
|---|
Public Sub RasterizeCurrentTriangulation ( _ xSpacing As Double, _ ySpacing As Double _ ) |
| Visual C++ |
|---|
public: void RasterizeCurrentTriangulation( double xSpacing, double ySpacing ) |
Parameters
- xSpacing
- Type: System..::.Double
The raster width in x-direction.
- ySpacing
- Type: System..::.Double
The raster height in y-direction.
Remarks
Rasterizing a existing triangulation means:
- Generate a raster in the xy-plane. The base point is p = (minX, minY).
- Remove all raster points that are not in the convex hull of the existing triangulation.
- Find the z-coordinate for each point on the raster by interpolating the existing triangulation.
- Triangulate the raster.
- Remove all triangles whose diagonals in the xy-plane are longer than the diagonal of a raster element.
Exceptions
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | A valid triangulation does not exist. Compute the triangulation before. |