API Reference > OdDb Classes > OdDbPolyline Class > OdDbPolyline Methods > OdDbPolyline::addVertexAt Method
OdDbPolyline::addVertexAt Method
Syntax
C++
void addVertexAt(unsigned int vertexIndex, const OdGePoint2d& point2d, double bulge = 0., double startWidth = -1., double endWidth = -1., OdInt32 vertexIdentifier = 0);
Parameters 
Description 
unsigned int vertexIndex 
[in] Vertex index.  
const OdGePoint2d& point2d 
[in] OCS point of the vertex.  
double bulge = 0. 
[in] Bulge value for the segment following the vertex.  
double startWidth = -1. 
[in] Start width for the segment following the vertex.  
double endWidth = -1. 
[in] End width for the segment following the vertex.  
OdInt32 vertexIdentifier = 0 
[in] 

Inserts a vertex into this Polyline entity at the specified index. 

 

The vertex is inserted before the specified vertex. If vertexIndex == numVerts(), the vertex is appended to the Polyline. 

Bulge is the tangent of 1/4 the included angle of the arc segment, measured counterclockwise.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.