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] Pointer to another solid object for checking interference.  
bool createNewSolid 
[in] Flag determining whether a new solid object containing the interference must be created.  
bool& solidsInterfere 
[out] Reference to a boolean variable where the result of the interference checking will be stored and returned.  
OdDb3dSolidPtr & commonVolumeSolid 
[out] Reference to a pointer to a new solid containing the interference of the origin solid and otherSolid.
 

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 case when commonVolumeSolid is added to a database, the database takes responsibility for the memory pointed by commonVolumeSolid. In case when commonVolumeSolid is not added to a database, the caller must release memory when it is no longer needed to avoid a memory leak. 

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

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