SculptMouseData Struct Reference 雕刻

| Library » Sculpt Brush

#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.

由于
R17.032

Public Attributes

SculptObject pObject
向量   mouseCoord
向量   hitPoint
Vector32   normal
向量   barryCoord
Int   polygon
Bool   mouseDrag
Float   distance
Bool   isBackface

Member Data Documentation

◆  pObject

SculptObject * pObject

The selected Object underneath the mouse.

◆  mouseCoord

向量 mouseCoord

The screen coordinates for the mouse location in the current viewport.

◆  hitPoint

向量 hitPoint

The hitpoint on the surface of the model at the center of the brush dab.

◆  normal

Vector32 normal

The normal on the surface of the model at the center of the brush dab.

◆  barryCoord

向量 barryCoord

The barycentric coordinates within the triangle for the hit polygon.

◆  polygon

Int polygon

The Index of the hit polygon.

◆  mouseDrag

Bool mouseDrag

This will be set to true if the mouse button is held down and being dragged in the viewport.

◆  distance

Float distance

The distance from the mouse in local space to the surface of the object.

◆  isBackface

Bool isBackface

This will be set to true if the polygon under the mouse is backfacing.