Click or drag to resize

CIPTrimUBC2DModel Method

Trim the padding cells from the UBC IPINV2D Model.

Namespace:  Geosoft.Desktop.GXNetX
Assembly:  geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static CPG TrimUBC2DModel(
	CGXNETCore gxNetShared,
	CPG pg,
	int trim_xl,
	int trim_xr,
	int trim_z,
	CVV vv_x,
	CVV vv_z,
	ref double x
)

public static CPG TrimUBC2DModel(
	CGXNETCore gxNetShared,
	CPG pg,
	int trim_xl,
	int trim_xr,
	int trim_z,
	CVV vv_x,
	CVV vv_z,
	ref double x
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
pg
Type: GeoEngine.Core.GXNetXCPG
Input model (unchanged)
trim_xl
Type: SystemInt32
Cells to remove on left
trim_xr
Type: SystemInt32
Cells to remove on right
trim_z
Type: SystemInt32
Cells to remove on the bottom
vv_x
Type: GeoEngine.Core.GXNetXCVV
Column widths (modified)
vv_z
Type: GeoEngine.Core.GXNetXCVV
Row heights (modified)
x
Type: SystemDouble
Top left corner X (modified)

Return Value

Type: CPG
PG Object
Remarks
The cells are removed from the left, right and bottom. The returned PG is the trimmed version. The input cell size VVs are also trimmed to match, and the origin is updated (still upper left corner).
See Also