SmApiBoolean2d#
Defined in SM_API/inc/SmApiBrep.h
- SmApiStatus SmApiBoolean2d(
- SmBrep *pBrep1,
- SmBrep *pBrep2,
- Sm2DBooleanOperationType eOpType,
- SmBrep *&rpResult,
If either input has zero faces, returns SM_SUCCESS without assigning rpResult or deleting pBrep2.
- Parameters:
pBrep1 – [in/out]: Primary Brep; modified and returned on non-empty success
pBrep2 – [in ]: Second Brep; deleted on non-empty success
eOpType –
[in ]: Operation Type
: SM_2D_UNION, = Union of 2D regions A and B
: SM_2D_INTERSECTION, = Intersection of 2D regions A and B
: SM_2D_DIFFERENCE, = Difference - A minus B
: SM_2D_EXCLUSIVE_OR, = XOR = (A union B) - (A intersect B)
: SM_2D_MERGE = Merge Operation
rpResult – [out]: Modified pBrep1 on non-empty success; otherwise unchanged