函数
|
void *
|
SendPainterCommand
(
Int32
command,
BaseDocument
*doc,
PaintTexture
*tex,
BaseContainer
*bc)
|
TempUVHandle
*
|
GetActiveUVSet
(
BaseDocument
*doc,
Int32
flags)
|
Bool
|
UpdateMeshUV
(
Bool
fullUpdate=false)
|
void
|
FreeActiveUVSet
(
TempUVHandle
*handle)
|
const
EdgeBaseSelect
*
|
GetUVSeams
(const
BaseObject
*obj)
|
const
EdgeBaseSelect
*
|
GetUVSeams2
(const
BaseObject
*obj,
Bool
checkUVSettings=false)
|
Bool
|
CallUVCommand
(const
向量
*padr,
Int32
PointCount, const
CPolygon
*polys,
Int32
lPolyCount,
UVWStruct
*uvw,
BaseSelect
*polyselection,
BaseSelect
*pointselection,
BaseObject
*op,
Int32
模式,
Int32
cmdid, const
BaseContainer
&settings)
|
Int32
|
IdentifyImage
(const
Filename
&texpath)
|
Bool
|
BPSetupWizardWithParameters
(
BaseDocument
*doc, const
BaseContainer
&settings,
AtomArray
&objects,
AtomArray
&material)
|
Bool
|
CalculateTextureSize
(
BaseDocument
*doc,
AtomArray
&materials,
TextureSize
*&sizes)
|
Bool
|
GetAllStrings_AddTexture
(const void *msgdata, const
BaseContainer
&d)
|
void
|
PainterActivateChannel
(
Int32
channel,
Bool
multi,
Bool
enable)
|
PaintTexture
*
|
PainterCreateNewTextureDialog
(
String
&result,
Filename
&resultdirectory,
Int32
channelid,
BaseMaterial
*bmat)
|
maxon::Result
< maxon::DrawportTextureInterface * >
|
PainterGetBrush
(
BaseDraw
*bd,
PaintBrushData
&brushData)
|
Macro Definition Documentation
◆
UV_SET_FROM_PROJECTION_CMD_ID
#define UV_SET_FROM_PROJECTION_CMD_ID
|
Set UVW from Projection command in texture view.
Function Documentation
◆
SendPainterCommand()
Sends commands to
BodyPaint 3D
.
-
参数
-
[in]
|
命令
|
The command:
PAINTER
|
[in]
|
doc
|
The optional document for the operation.
|
[in]
|
tex
|
The optional paint texture for the operation.
|
[in]
|
bc
|
The optional container for the operation:
PAINTER
|
-
返回
-
The
BodyPaint 3D
window handle.
Private
.
◆
GetActiveUVSet()
Retrieves the document's active UV set.
-
参数
-
[in]
|
doc
|
The document returning the active UV set.
|
[in]
|
flags
|
The flags:
GETACTIVEUVSET
|
-
返回
-
A temporary handle to the active UV set, or
nullptr
if there is no active UV set. Has to be freed with
FreeActiveUVSet()
.
◆
UpdateMeshUV()
Bool
UpdateMeshUV
|
(
|
Bool
|
fullUpdate
=
false
|
)
|
|
Updates the mesh based on the UVW result of interactive unwrapping.
-
返回
-
true
if successful, otherwise
false
.
◆
FreeActiveUVSet()
Frees the active UV set.
-
参数
-
[in]
|
handle
|
The temporary handle of the UV set to be freed.
|
◆
GetUVSeams()
Deprecated
. Use GetUVSeams2(obj, true) to have the same behavior as before, but most of the time you want the "checkUVSettings" parameter to be false. Gets the UV seam edges for
obj
.
The edges are indexed by
4 * polygon + edge
where
polygon
is the polygon index and
edge
is the edge index between
0
and
3
.
-
注意
-
If the UV seams are disabled in the UV viewport, nullptr will be returned.
-
参数
-
[in]
|
obj
|
The object of the UV set.
|
-
返回
-
The UV seam edges. The UV mesh owns the pointed base select.
◆
GetUVSeams2()
Gets the UV seam edges for
obj
.
The edges are indexed by
4 * polygon + edge
where
polygon
is the polygon index and
edge
is the edge index between
0
and
3
.
-
参数
-
[in]
|
obj
|
The object of the UV set.
|
[in]
|
checkUVSettings
|
If true and the UV seams are disabled in the UV viewport, nullptr will be return. If false, will always return the UV seams, without checking if the UV seams settings is enabled or not in the UV viewport.
|
-
返回
-
The UV seam edges. The UV mesh owns the pointed base select.
◆
CallUVCommand()
Bool
CallUVCommand
|
(
|
const
向量
*
|
padr
,
|
|
|
Int32
|
PointCount
,
|
|
|
const
CPolygon
*
|
polys
,
|
|
|
Int32
|
lPolyCount
,
|
|
|
UVWStruct
*
|
uvw
,
|
|
|
BaseSelect
*
|
polyselection
,
|
|
|
BaseSelect
*
|
pointselection
,
|
|
|
BaseObject
*
|
op
,
|
|
|
Int32
|
mode
,
|
|
|
Int32
|
cmdid
,
|
|
|
const
BaseContainer
&
|
settings
|
|
)
|
|
|
Calls UV commands.
范例:
TempUVHandle
*handle =
GetActiveUVSet
(pDoc,
GETACTIVEUVSET_ALL
);