API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::checkInterference Method
OdDb3dSolid::checkInterference Method
Syntax
C++
virtual OdResult checkInterference(const OdDb3dSolid* otherSolid, bool createNewSolid, bool& solidsInterfere, OdDb3dSolidPtr & commonVolumeSolid) const;
Parameters 
Description 
const OdDb3dSolid* otherSolid 
[in] A pointer to another solid object for checking interference.  
bool createNewSolid 
[in] A flag determining where a new solid object containing the interference must be created.  
bool& solidsInterfere 
[out] A reference to a boolean variable where the result of the interference checking will be stored and returned.  
OdDb3dSolidPtr & commonVolumeSolid 
[out] A reference to a pointer to a new solid containing the interference of the origin solid and otherSolid.
 

Returns eOk if interference checking is successful or an appropriate error code in other case.

Checks whether the solid interferes with another solid object. 

 

The caller of this function is responsible for the memory used by the object pointed by commonVolumeSolid (resulting from intersection of this solid and otherSolid) when the function finishes. In the case when commonVolumeSolid is added to a database, the database takes responsibility for the memory pointed by commonVolumeSolid. In the case when commonVolumeSolid is not added to a database, the caller must delete memory when it is no longer needed to avoid a memory leak. 

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

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