Auf dieser Seite

ParticleModelShape3D QML Type

Stellt die Partikelform anhand des Modells für Emitter und Affektoren bereit. Mehr...

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

ParticleAbstractShape3D

Eigenschaften

Ausführliche Beschreibung

Das Element „ParticleModelShape3D“ kann verwendet werden, um die Partikelform aus einem 3D-Modell zu ermitteln.

Beispiel: Um Partikel aus den Konturen einer Modellform emittieren zu lassen:

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

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

Dokumentation zu den Eigenschaften

delegate : Component

Der Delegat stellt eine Vorlage bereit, die das Modell für die „ ParticleModelShape3D “ definiert. Beispielsweise bei Verwendung des Standard-Kugelmodells mit Standardmaterial

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

fill : bool

Diese Eigenschaft legt fest, ob die Form ausgefüllt werden soll oder nur die Konturen der Form verwendet werden sollen.

Der Standardwert ist „ 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.