Click or drag to resize
CTINiLocateTriangle Method
Get the index of the triangle containing X, Y.

Available since Oasis montaj version: 5.0.0
License: Available to anyone with an Oasis Montaj license.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
Index returned begins at 0, but could be negative. -1 If X,Y is not contained in a triangle (or triangle not found) -2 If the location is on an edge This is for "fall-back" purposes only. Frequently edge positions are located as being part of a triangle, so do not rely on this result to determine if a node position is on an edge. -3 If the location is a vertex. This is for "fall-back" purposes only in the code. Normal operation is to include a node position inside a triangle, so do not rely on this result to determine if a node position is input.
Syntax
public int iLocateTriangle(
	int i1,
	double d2,
	double d3
)

Parameters

i1
Type: SystemInt32
seed triangle (can be iDummy or <0)
d2
Type: SystemDouble
target X location
d3
Type: SystemDouble
target Y location

Return Value

Type: Int32
The index of the triangle containing X, Y.
See Also