C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844

Data structure and callbacks for the collision search request. More...

#include <cdet_data.h>

+ Inheritance diagram for cdet_query:

Classes

struct  cback_data
 < Data structure that notifies an app about collision detection event. More...
 
struct  geom_element
 < Structure representing a collision detection geometry. More...
 

Public Types

enum  cback_res {
}
 < Result code of the callback function More...
 
enum  message {
  CDET_NONE , CDET_QUERY_STARTED , CDET_STARTED , CDET_FINISHED ,
  CDET_NO_INTERSECTION , CDET_TOUCHED , CDET_INTERSECTED , CDET_INCLUDED
}
 < Code of notification More...
 

Detailed Description

Data structure and callbacks for the collision search request.

The base class intended to implement on the application side the structure of a query to the collision search algorithm. The application uses a callback to control the collision search and obtain details of detected interferencies.

Member Enumeration Documentation

◆ cback_res

< Result code of the callback function

Enumerator
CBACK_SUFFICIENT 

This code means that an app stops collision query for the given pair of geometric objects.

CBACK_SKIP 

Skip testing the given pair.

CBACK_NEED 

Enable testing the given pair.

CBACK_BREAK 

Break search of all collisions of the set.

CBACK_SEARCH_MORE 

This code notifies a collision detector to continue working at cases CDET_INTERSECTED, CDET_TOUCHED.

◆ message

< Code of notification

Enumerator
CDET_NONE 

No messages.

CDET_QUERY_STARTED 

The collision query is started for the all objects of the scene set.

CDET_STARTED 

The collision query is started for the given pair of geometric objects.

CDET_FINISHED 

Collision detector complete searching collisions for the given pair of geometric objects.

CDET_NO_INTERSECTION 

Definitely the pair has no intersection (this enum value for internal use only).

CDET_TOUCHED 

Touched faces has been founded with no penetration of the solids.

CDET_INTERSECTED 

The collided pair of objects founded.

CDET_INCLUDED 

The included pair of objects founded.


The documentation for this struct was generated from the following file: