DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > Model > Operations and Agorithms > IBooleanEntity_DG Search Documentation


IBooleanEntity_DG Interface

Subtract
Unite
Intersect
SurfaceIntersection

Boolean operations


void Subtract(IEntity_DG entity)

Subtracts entity from this. When both entites have "BRep" geometry type, this shape becomes a compound (Implements IBRepCompound_DG) because the result may not be a linked (single piece) geometry

Individual shapes can be accessed via:
thisEntity > IEntity.GetGeometry() > IGeometry_DG > GetGeometryType()
IGeometry_DG > IBRepGeometry_DG > GetShape() > IBRepShape_DG > GetShapeType()
IBRepShape_DG > IBRepCompound_DG > GetShapeCount()
IBRepCompound_DG > GetShape(index) > IBRepShape_DG > GetShapeType()


void Unite(IEntity_DG entity)

This entity changes to union of this and entity. When both entites have "BRep" geometry type, this shape becomes a compound (Implements IBRepCompound_DG) because the result may not be a linked (single piece) geometry

Individual shapes can be accessed via:
thisEntity > IEntity.GetGeometry() > IGeometry_DG > GetGeometryType()
IGeometry_DG > IBRepGeometry_DG > GetShape() > IBRepShape_DG > GetShapeType()
IBRepShape_DG > IBRepCompound_DG > GetShapeCount()
IBRepCompound_DG > GetShape(index) > IBRepShape_DG > GetShapeType()


void Intersect(IEntity_DG entity)

Intersects this with entity. When both entites have "BRep" geometry type, this shape becomes a compound (Implements IBRepCompound_DG) because the result may not be a linked (single piece) geometry

Individual shapes can be accessed via:
thisEntity > IEntity.GetGeometry() > IGeometry_DG > GetGeometryType()
IGeometry_DG > IBRepGeometry_DG > GetShape() > IBRepShape_DG > GetShapeType()
IBRepShape_DG > IBRepCompound_DG > GetShapeCount()
IBRepCompound_DG > GetShape(index) > IBRepShape_DG > GetShapeType()


IEntity_DG SurfaceIntersection(IEntity_DG entity)

Returns 1D intersection of surfaces. When both entites have "BRep" geometry type the returned entity also has "BRep" geometry. Its BRep shape is a compound (Implements IBRepCompound_DG), which consists of edges. It is recommended to verify that via:
iReturnedEntity > IEntity.GetGeometry() > IGeometry_DG > GetGeometryType()
IGeometry_DG > IBRepGeometry_DG > GetShape() > IBRepShape_DG > GetShapeType()
IBRepShape_DG > IBRepCompound_DG > GetShapeCount()
IBRepCompound_DG > GetShape(index) > IBRepShape_DG > GetShapeType()
IBRepShape_DG > IBRepEdge_DG > GetCurve() > ....