PrimitiveInformation Struct Reference

#include <distancequery.h>

详细描述

PrimitiveInformation stores information about a primitive relative to a mesh and a position on that primitive.

公共成员函数

Bool   GetTriangleQuadInfo () const
Int   GetRealPolyIndex () const
Int   GetRealIndex () const

Public Attributes

PRIMITIVETYPE   type
Int   index
Int   secondaryIndex
向量   uvw

成员函数文档编制

◆  GetTriangleQuadInfo()

Bool GetTriangleQuadInfo ( ) const

Retrieve if the primitive information is on the quad or the triangle part of a quad.

返回
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 .

注意
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 the polygon index relative to the initialized mesh.

◆  GetRealIndex()

Int GetRealIndex ( ) const

Retrieve the index of the primitive.

返回
Returns the index relative to the initialized mesh.

Member Data Documentation

◆  type

PRIMITIVETYPE type

◆  index

Int index

◆  secondaryIndex

Int secondaryIndex

◆  uvw

向量 uvw