C++
Acad::ErrorStatus appendVertex( AcDbObjectId& objId, AcDbPolyFaceMeshVertex* );
Description
This function appends the AcDbPolyFaceMeshVertex object pointed to by pNewVert to the end of the vertex list of the PolyFaceMesh, establishes the PolyFaceMesh as the vertex's owner, and adds the vertex to the AcDbDatabase that contains the PolyFaceMesh (the PolyFaceMesh must be database-resident for this function to succeed).
The appended vertex must be explicitly closed by the calling application after the appendVertex() call returns.
Returns Acad::eOk if successful. If the PolyFaceMesh is not yet database-resident, then Acad::eNoDatabase is returned. If this function is called with the PolyFaceMesh's face count > 0, then the call fails and Acad::eVertexAfterFace is returned.
All vertices must be appended before any FaceRecords are appended. Once even one FaceRecord has been appended, the appendVertex() methods no longer work.
Parameters
Parameters | Description |
---|---|
objId | Output object ID of the vertex just added |
unnamed | Input pointer to the vertex to append |