Collision Sample
Collision sample is based on Metrics Sample.
It demonstrates application of IMetrics_DG interface for collision detection.
See also Metrics Sample,
IMetrics_DG Interface, All samples.
Running the application
The application expects the model to have at least two top level objects.
Names of the first and the second objects are displayed on the right-hand side
of the form. The Object radio buttons allow selection which of the two objects
in the model will be moved.
On clicking the Move button, the application will move the selected
object from its current location, which is displayed in "Position" group to new
position entered in the "Destination" group. The movement is animated in the 3D
view. When the object gets closer to the second object than the distance
specified in "Stop at distance" box, the animation stops and nearest points are
displayed for the last position.
The "Vertices Only" check box allows comparing performances with quickCheck
option in IMetrics_DG.IsCloserThan
method turned on and off. When the check is turned on the minimal distance in
the "Stop at distance" edit box is increased to a suggested value to avoid
missing collision situation.
File menu allows loading new and saving the current model.
|