MeshBuilder Class |
The following must be set: SetProjection(String)/SetProjection(IDfsProjection), SetNodes(Double, Double, Double, Int32), SetElements(Int32). Other setters are optional and if not set, default values are used.
Be aware; setting the node and element id's to anything but the default values can cause some tools to fail.
Namespace: DHI.Generic.MikeZero.DFS.mesh
The MeshBuilder type exposes the following members.
Name | Description | |
---|---|---|
MeshBuilder | Initializes a new instance of the MeshBuilder class |
Name | Description | |
---|---|---|
Create |
Create a mesh file from the provided dfsu file.
The dfsu file must be a 2D dfsu file. | |
CreateMesh |
Create and return a new MeshFile object
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetElementIds |
Set the element id's. Optional. If not set, default values are used (1,2,3,...)
| |
SetElements |
Set element connectivity: For each element is specified which nodes
the element consist of. The node is specified by its index into the list of nodes.
| |
SetEumQuantity |
Set the quantity to use for the mesh Z variable. If not set,
it will use a Bathymetry item type (eumIBathymetry)
with meter unit (eumUmeter).
| |
SetNodeIds |
Set the node id's. Optional. If not set, default values are used (1,2,3,...)
| |
SetNodes(Double, Double, Double, Int32) |
Set node coordinates and code.
| |
SetNodes(Single, Single, Single, Int32) |
Set node coordinates and code.
Coordinates are converted to doubles and stored. | |
SetProjection(String) |
Set the projection to use for the mesh
| |
SetProjection(IDfsProjection) |
Set the projection to use for the mesh
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Validate |
Validate will return a string of issues from the item builder.
When this returns an empty list, the item has been properly build.
|