Detection method for collision between solid mesh models based on GPU (Graphics Processing Unit) acceleration
A technology of collision detection and modeling, applied in the field of virtual assembly, can solve the problems of reduced efficiency, inability to achieve accuracy and real-time, etc., and achieve the effect of improving calculation speed and enhancing real-time performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] Such as figure 1 Shown, the concrete realization steps of the present invention are as follows:
[0024] Step (1), obtain all vertex information of the first model (denoted as model A), obtain the second model (denoted as model B) AABB layer bounding box information;
[0025] Step (2), judging whether model B is a solid triangle patch model, if yes, then do not process, otherwise, first perform triangle patch processing on model B;
[0026] Step (3), obtain the vertex information of each triangular face of model B, the total number of triangular faces is recorded as f, and the vertex information of f triangular faces is constructed into a vertex texture (denoted as texture V) and loaded into the GPU memory;
[0027] Step (4), create rays for each vertex of model A, assuming that model A has n vertices, and the i-th vertex coordinate is marked as (x i ,y i ,z i ), set the threshold l as the collision accuracy, all rays are parallel to each other, and the direction of...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
