DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


Collision Sample

Collision sample is based on Metrics Sample. It demonstrates application of IMetrics interface for collision detection. It also demonstrates usage of I3Dpt interface for quick background calculations with 3D vectors and points.

See also Metrics Sample, IMetrics 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.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.