SculptHitData Struct Reference 雕刻

| Library » Sculpt

#include <lib_sculpt.h>

详细描述

Data structure filled out by the SculptObject::Hit() methods.

Public Attributes

向量   localHitPoint
Vector32   localHitNormal
Int32   selectedPolygon
Float   distance
Bool   backface

Member Data Documentation

◆  localHitPoint

向量 localHitPoint

The location of the hit point on the surface of the object in its local coordinate system.

◆  localHitNormal

Vector32 localHitNormal

The normal of the hit point on the surface of the object in its local coordinate system.

◆  selectedPolygon

Int32 selectedPolygon

The polygon that was hit.

◆  distance

Float distance

The distance from rayp 。见 SculptObject::Hit(const Vector &rayp, const Vector &rayv, Bool backfaces, SculptHitData &hitData) .

◆  backface

Bool backface

The hit polygon was a backfacing polygon.