In questa pagina

ParticleModelShape3D QML Type

Fornisce la forma delle particelle in base al modello per emettitori e attuatori. Maggiori informazioni...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2
Inherits:

ParticleAbstractShape3D

Proprietà

Descrizione dettagliata

L'elemento ParticleModelShape3D può essere utilizzato per ricavare la forma delle particelle da un modello 3D.

Ad esempio, per emettere particelle dai contorni di una forma del modello:

Component {
    id: suzanneComponent
    Model {
        source: "meshes/suzanne.mesh"
        scale: Qt.vector3d(100, 100, 100)
    }
}

ParticleEmitter3D {
    shape: ParticleModelShape3D {
        model: suzanneComponent
        fill: false
    }
    ...
}

Documentazione delle proprietà

delegate : Component

Il delegato fornisce un modello che definisce la struttura di ParticleModelShape3D. Ad esempio, utilizzando il modello predefinito di sfera con il materiale predefinito

Component {
    id: modelComponent
    Model {
        source: "#Sphere"
        scale: Qt.vector3d(0.5, 0.5, 0.5)
        materials: DefaultMaterial { diffuseColor: "red" }
    }
}
ParticleModelShape3D {
    delegate: modelComponent
}

fill : bool

Questa proprietà definisce se la forma deve essere riempita o se devono essere visualizzati solo i contorni.

Il valore predefinito è " true".

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