详细描述
Macro Definition Documentation
◆
LIBRARY_SCULPT
Sculpt library ID.
Function Documentation
◆
GetSelectedSculptObject()
Gets the currently selected
SculptObject
in the document. This is the first selected
PolygonObject
that has a
SculptTag
.
-
参数
-
[in]
|
doc
|
The document to search. The caller owns the pointed document.
|
[in]
|
includeHiddenObjects
|
true
to include selected hidden objects.
|
-
返回
-
The
SculptObject
that the
SculptTag
references.
◆
MakeSculptObject()
Adds a
SculptTag
到
PolygonObject
if one does not exist then return the
SculptObject
that the newly created
SculptTag
references.
-
参数
-
[in]
|
poly
|
The
PolygonObject
to add the
SculptTag
to. The caller owns the pointed
PolygonObject
.
|
[in]
|
doc
|
The document that the
PolygonObject
belongs to. The caller owns the pointed document.
|
[in]
|
addUndo
|
若
true
then an undo event will be added so that the addition of the
SculptTag
can be undone.
|
-
返回
-
The
SculptObject
that the SculpTag references.
◆
IsObjectEnabled()
Checks if an object is currently visible in the viewport.
-
参数
-
[in]
|
pObject
|
The object to check. The caller owns the pointed object.
|
-
返回
-
true
if the object is enabled in the editor viewport, otherwise
false
.
◆
EnsureSculptObjectReady()
Ensures that a copy a
PolygonObject
that has a
SculptTag
on it is initialized correctly straight after adding it to a document.
-
参数
-
[in]
|
obj
|
The
PolygonObject
that has the
SculptTag
. The caller owns the pointed
PolygonObject
.
|
[in]
|
doc
|
The document the object belongs to. The caller owns the pointed document.
|