#include <distancequery.h>
PrimitiveInformation stores information about a primitive relative to a mesh and a position on that primitive.
◆ GetTriangleQuadInfo()
Bool GetTriangleQuadInfo |
( |
| ) |
const |
Retrieve if the primitive information is on the quad or the triangle part of a quad.
- Returns
- True if the point is on the quadpart of a polygon (a-c-d triangle), false if it is on the triangle part (a-b-c triangle).
◆ GetRealPolyIndex()
Int GetRealPolyIndex |
( |
| ) |
const |
Retrieve the original polygon index if the primitive type is PRIMITIVETYPE::POLYGON.
- Note
- this does the same as GetRealIndex() if the primitive is a polygon, but is a bit faster. Only use this if you are certain it is a polygon primitive.
- Returns
- Returns the polygon index relative to the initialized mesh.
◆ GetRealIndex()
Int GetRealIndex |
( |
| ) |
const |
Retrieve the index of the primitive.
- Returns
- Returns the index relative to the initialized mesh.
◆ type
◆ index
◆ secondaryIndex
◆ uvw