C3D Toolkit  Kernel - 105435, Vision - 121811.105435
+ Collaboration diagram for Collision Detection:

Classes

struct  cdet_collided_faces
 The structure of the query to find collision faces. More...
 
class  MbCollisionDetectionUtility
 Utility for calculation of intersection and proximity parameters of solids. More...
 

Typedefs

typedef MbHRepSolid * cdet_item
 Object of the set for collision detection.
 
typedef MbResultType cdet_result
 Result code of collision queries.
 

Functions

MbResultType InterferenceSolids (MbSolid &solid1, MbSolid &solid2, std::vector< MbCurveEdge *> *edges, std::vector< ptrdiff_t >(*faceNumbers)[4])
 Calculation of intersections between solids using the boolean operations. More...
 

Variables

const cdet_item CDET_NULL = NULL
 Empty object of the collision query set.
 
const cdet_app_item CDET_APP_NULL = NULL
 "Null object" of the client app.
 

Detailed Description

Function Documentation

◆ InterferenceSolids()

MbResultType InterferenceSolids ( MbSolid solid1,
MbSolid solid2,
std::vector< MbCurveEdge *> *  edges,
std::vector< ptrdiff_t >(*)  faceNumbers[4] 
)

Calculation of intersections between solids using the boolean operations.

Calculation of intersections between solids using the boolean operations.

Parameters
[in]solid1- The first solid.
[in]solid2- The second solid.
[out]edges- Intersection edges.
[out](*faceNumbers)[4]- Numbers of intersection faces.
faceNumbers[0] - intersected faces of the first solid,
faceNumbers[1] - intersected faces of the second solid,
faceNumbers[2] - similar faces of the first solid,
faceNumbers[3] - similar faces of the second solid.
Returns
Operation result code.
Warning
The solids will be modified by this operation! To keep the body intact, give the copies made using MbSolid::Duplicate().