In questa pagina

ConvexMeshShape QML Type

Una forma di collisione convessa basata su una mesh 3D. Per saperne di più...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

CollisionShape

Proprietà

Descrizione dettagliata

Questo tipo definisce una forma convessa basata sullo stesso formato di file di mesh 3D utilizzato da QtQuick3D.Model. Se la mesh non è convessa, verrà utilizzato l'involucro convesso della mesh.

Vedi anche Qt Quick 3D Physics Forme, corpi e giunti e TriangleMeshShape.

Documentazione delle proprietà

geometry : Geometry [since 6.7]

Questa proprietà definisce la geometria di una mesh utilizzata per definire la forma. Se la mesh non è convessa, verrà utilizzata l'involucro convesso della mesh. Il numero massimo di facce e vertici è 255: se la mesh presenta un livello di dettaglio superiore, verrà semplificata.

Nota: se sono impostate sia la proprietà "geometry" che quella " source ", verrà utilizzata solo la prima.

Questa proprietà è stata introdotta in Qt 6.7.

Vedi anche ConvexMeshShape::source.

source : url

Questa proprietà definisce la posizione del file di mesh utilizzato per definire la forma. Se la mesh non è convessa, verrà utilizzata l'involucro convesso della mesh. Il numero massimo di facce e vertici è 255: se la mesh presenta un livello di dettaglio superiore, verrà semplificata.

Internamente, ConvexMeshShape converte la mesh in una struttura dati ottimizzata. Questa conversione può essere eseguita in anticipo. Per ulteriori dettagli, consultare la documentazione sulla panoramica di Cooking.

Nota: se sono impostate sia la proprietà ` geometry ` che la proprietà `source`, verrà utilizzata solo la proprietà ` geometry `.

Vedi anche ConvexMeshShape::geometry.

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