本页内容

PickTriangleEvent QML Type

PickTriangleEvent 保存了选择三角形时的相关信息。更多内容...

Import Statement: import Qt3D.Render 2.12
In C++: QPickTriangleEvent
Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

当 QPickingSettings::pickMode() 设置为 QPickingSettings::TrianglePicking 时,QObjectPicker 上的信号将携带一个 QPickTriangleEvent 实例。

该对象包含所选三角形的详细信息。

注意:在 索引渲染的情况下,点索引是相对于索引数组的,而不是相对于坐标数组的。

另请参阅 PickingSettings 、PickEvent 、ObjectPicker 和Attribute 。

属性文档

triangleIndex : uint [read-only]

指定事件的三角形索引

vertex1Index : uint [read-only]

指定三角形中第一个顶点的索引

vertex2Index : uint [read-only]

指定三角形中第二个顶点的索引

vertex3Index : uint [read-only]

指定三角形中第三个顶点的索引

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.