Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDb3dSolid::checkInterference Method
Syntax
C++
virtual OdResult checkInterference(const OdDb3dSolid* otherSolid, bool createNewSolid, bool& solidsInterfere, OdDb3dSolidPtr& commonVolumeSolid) const;

Checks whether the solid interferes with another solid object. 

 

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

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 for Modeler Geometry and Spatial modeler and returns the eNotImplementedYet status for other modelers.

Copyright © 2002-2022. Open Design Alliance All rights reserved.