Geometry QML Type
An Abstract base type for custom geometry. More...
Import Statement: | import QtQuick3D 1.15 |
Instantiates: | QQuick3DGeometry |
Inherits: | |
Inherited By: |
Properties
- name : string
Detailed Description
The Geometry can be used to specify custom geometry used with Qt Quick 3D. The custom geometry should be implemented with C and registered to QML.
The geometry is identified with unique name, which is used by the engine to distinguish different models. Instances of same custom geometry type with different parameters should specify different unique id. The name can be used with model source to share the same geometry with different models.
import QtQuick3D.Helpers 1.15 Model { id: gridModel geometry: GridGeometry { name: "grid" } materials: [ DefaultMaterial { emissiveColor: "white" lighting: DefaultMaterial.NoLighting } ] }
See also Model.
Property Documentation
name : string |
Unique name identifying the geometry.
© 2024 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.