GetFace Method (IPolyFaceMesh)

GetFace Method (IPolyFaceMesh) | Send Feedback
See Also Example

Success[out]
  True if successful, false if not

FaceIndex
  Index of the mesh face (see Remarks)

Corner1Vertex[out]
  Mesh vertex index of the first corner

Corner2Vertex[out]
  Mesh vertex index of the second corner

Corner3Vertex[out]
  Mesh vertex index of the third corner

Corner4Vertex[out]
  Mesh vertex index of the fourth corner

Gets the mesh vertex indexes of the specified mesh face.

# Syntax

Visual Basic |
--- | ---
    Function GetFace( _
       ByVal FaceIndex As System.Integer, _
       ByRef Corner1Vertex As System.Integer, _
       ByRef Corner2Vertex As System.Integer, _
       ByRef Corner3Vertex As System.Integer, _
       ByRef Corner4Vertex As System.Integer _
    ) As System.Boolean

C# |
--- | ---
    System.bool GetFace(
       System.int FaceIndex,
       out System.int Corner1Vertex,
       out System.int Corner2Vertex,
       out System.int Corner3Vertex,
       out System.int Corner4Vertex
    )

JavaScript |
--- | ---
    GetFace(
       FaceIndex : Number
    ) : {
       Corner1Vertex : Number,
       Corner2Vertex : Number,
       Corner3Vertex : Number,
       Corner4Vertex : Number,
       Success : Boolean
    }

COM native C++ |
--- | ---
    HRESULT GetFace(
       LONG FaceIndex,
       LONG* Corner1Vertex,
       LONG* Corner2Vertex,
       LONG* Corner3Vertex,
       LONG* Corner4Vertex,
       VARIANT_BOOL* Success
    )

C++ |
--- | ---
    DSRESULT GetFace(
       long FaceIndex,
       long* Corner1Vertex,
       long* Corner2Vertex,
       long* Corner3Vertex,
       long* Corner4Vertex,
       bool* Success
    )

#### Parameters

FaceIndex
  Index of the mesh face (see Remarks)
Corner1Vertex[out]
  Mesh vertex index of the first corner
Corner2Vertex[out]
  Mesh vertex index of the second corner
Corner3Vertex[out]
  Mesh vertex index of the third corner
Corner4Vertex[out]
  Mesh vertex index of the fourth corner
Success[out] or Return Value
  True if successful, false if not

# Example

Create Polygon Face Mesh (C#)
Create Polygon Face Mesh (VB.NET)
Create Polygon Face Mesh (VBA)

# Remarks

Before calling this method, call IPolyFaceMesh::GetFacesCount to determine a valid value for FaceIndex.

Use IPolyFaceMesh::GetVerticesCount and IPolyFaceMesh::GetVertexCoordinate to find the mesh vertex coordinates that correspond to the mesh vertex indexes returned by this method.

# See Also

####

IPolyFaceMesh Interface
IPolyFaceMesh Members
IPolyFaceMesh::AddFace Method

# Availability

DraftSight V1R1.3