API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::createInterferenceObjects Method
OdDbSurface::createInterferenceObjects Method
Syntax
C++
virtual OdResult createInterferenceObjects(OdDbEntityPtrArray& interferenceObjects, OdDbEntityPtr pEntity, unsigned int flags) const;
Parameters 
Description 
OdDbEntityPtrArray& interferenceObjects 
[out] Output array of interference entities, which can contain OdDbSurface or curve entities.  
OdDbEntityPtr pEntity 
[in] Pointer to an entity the surface must be interfered with. pEntity can point to the following entity types: OdDbSurface, OdDb3dSolid, OdDbRegion, or OdDbBody.  
unsigned int flags 
[in] Interference flags; equal to kDefault (0x00).
 

Returns eOk if interference entities are successfully created or an appropriate error code otherwise. For example, if interference entities are not created, eNoIntersection error code is returned. eInvalidInput is returned if an unsupported entity or NULL pointer is provided as a value of pEntity.

Creates new entities that represent the result of interference between the surface and specified entity. Created entities are appended to the specified array. 

 

Created entities are not included in the database, so caller is responsible for the correct handling of them. This means that caller must include created entities in the database or delete them when they are no longer needed. 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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