本页内容

Geometry QML Type

封装几何对象。更多...

Import Statement: import Qt3D.Core 2.12
In C++: QGeometry
Inherits:

Node

Status: Deprecated

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

属性

详细说明

几何体类型用于将一组属性对象聚合在一起,形成 Qt3D 能够通过 `GeometryRenderer` 进行渲染的几何形状。可以设置特殊属性来计算该形状的包围体积。

属性文档

attributes : list<Attribute>

保存几何体所包含的属性列表。

boundingVolumePositionAttribute : Attribute

存储用于计算包围体积的属性。包围体积在内部用于选中操作和视锥体剔除。

如果未指定,系统将使用 QAttribute::defaultPositionAttributeName 返回的名称来查找该属性。

另请参阅 Attribute 。

maxExtent : vector3d [read-only]

包含 x、y、z 坐标值最大的顶点。

minExtent : vector3d [read-only]

包含 x、y、z 坐标值最小的顶点。

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