MatrixObject::GetRegionPoints

Description

Get Z values and indices of points inside polygonal region

Syntax

int GetRegionPoints( const vector & vRegionX, const vector & vRegionY, vectorbase & vZ, vector<int> & vI = NULL, vector<int> & vJ = NULL )

Parameters

vRegionX
[input] Vector of X coordinates of polygon
vRegionY
[input] Vector of Y coordinates of polygon
vZ
[output] Vector of Z values of points inside region
vI
[output] If not NULL, vector of I indicates inside region. default is NULL.
vJ
[output] If not NULL, vector of J indicates inside region. default is NULL.

Return

Number of points in region

Examples

EX1

// Matrix should be the active window 
int    MatrixObject_GetRegionPoints_Ex1(PolylineGraphObject& gr)
{
    vector vX;
    vector vY;
    gr.GetPoints(vX, vY);
    vector<int> vZ;
    vector<int> vI;
    vector<int> vJ;
    MatrixObject mObj(Project.MatrixPages(0).GetName(), 0);
    return mObj.GetRegionPoints(vX, vY, vZ, vI, vJ);
}

Remark

See Also

header to Include

origin.h