API Reference > OdBrepBuilder Classes > OdBrepBuilder Class > OdBrepBuilder Methods > OdBrepBuilder::addCoedge Method
OdBrepBuilder::addCoedge Method
Syntax
C++
BRepBuilderGeometryId addCoedge(const BRepBuilderGeometryId& loopId, const BRepBuilderGeometryId& edgeId, EntityDirection codgeDirection = kForward, const OdGeCurve2d* pParCur = NULL);
Parameters 
Description 
const BRepBuilderGeometryId& loopId 
[in] ID of the loop which the added code belongs to.  
const BRepBuilderGeometryId& edgeId 
[in] ID of the edge.  
EntityDirection codgeDirection = kForward 
[in] Coedge direction in relation to the edge.  
const OdGeCurve2d* pParCur = NULL 
[in] Pointer to a paramectic curve. Optional parameter.  

BRepBuilderGeometryId of the added coedge.

Adds a coedge associated to a previously added edge. A coedge represents the use of an edge on one of the edge's faces. 

 

OdError(eInvalidInput) exception is thrown if the type of the parametric curve (pParCur) is not supported by the BrepBuilder implementation.

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