| 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.GXNetAssembly: 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
)
Public Function iLocateTriangle (
i1 As Integer,
d2 As Double,
d3 As Double
) As Integer
public:
int iLocateTriangle(
int i1,
double d2,
double d3
)
member iLocateTriangle :
i1 : int *
d2 : float *
d3 : float -> int
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:
Int32The index of the triangle containing X, Y.
See Also