Unit X3DTriangles
Description
Triangles in VRML/X3D models (TTriangle) and octrees that resolve collisions with such triangles (TBaseTrianglesOctree).
Uses
Overview
Classes, Interfaces, Objects and Records
Types
Variables
Description
Types
Variables
TriangleCollisionTestsCounter: Cardinal; |
Counter of collision tests done by TTriangle when the actual collision calculation had to be done. This counts all calls to TTriangle.SegmentDirCollision and TTriangle.RayCollision when the result had to be actually geometrically calculated (result was not in the cache aka "mailbox").
It is especially useful to look at this after using some spatial data structure, like an octree. The goal of tree structures is to minimize this number.
It is a global variable, because that's the most comfortable way to use it. Triangles are usually wrapped in an octree (like TTriangleOctree), or even in an octree of octrees (like TShapeOctree). Tracking collisions using the global variable is most comfortable, instead of spending time on propagating this (purely debugging) information through the octree structures.
|
Generated by PasDoc 0.13.0 on 2014-04-30 22:06:50
|