#include <lib_sculptbrush.h>
若 SculptBrushParams::EnableMouseData ( true ) has been set for the brush then you will receive this data structure in the SculptBrushToolData::MouseData method as the mouse moves over the surface of the model.
Public Attributes |
|
SculptObject * | pObject |
向量 | mouseCoord |
向量 | hitPoint |
Vector32 | normal |
向量 | barryCoord |
Int | polygon |
Bool | mouseDrag |
Float | distance |
Bool | isBackface |
SculptObject * pObject |
The selected Object underneath the mouse.
向量 mouseCoord |
The screen coordinates for the mouse location in the current viewport.
向量 hitPoint |
The hitpoint on the surface of the model at the center of the brush dab.
Vector32 normal |
The normal on the surface of the model at the center of the brush dab.
向量 barryCoord |
The barycentric coordinates within the triangle for the hit polygon.
Int polygon |
The Index of the hit polygon.
Bool mouseDrag |
This will be set to true if the mouse button is held down and being dragged in the viewport.
Float distance |
The distance from the mouse in local space to the surface of the object.
Bool isBackface |
This will be set to true if the polygon under the mouse is backfacing.