This commit is contained in:
2026-05-09 16:36:21 +08:00
parent 5a265b6b1d
commit 65c342219d
9 changed files with 244052 additions and 2 deletions

34
refer/gcode_view.qml Normal file
View File

@@ -0,0 +1,34 @@
import QtQuick
import QtQuick3D
Item {
id: root
property real progress: 100
property real maxLayer: 10
View3D {
anchors.fill: parent
environment: SceneEnvironment {
clearColor: "#1a1a1a"
backgroundMode: SceneEnvironment.Color
}
PerspectiveCamera {
id: camera
z: 300
y: -200
eulerRotation.x: 45
}
DirectionalLight { eulerRotation.x: -45 }
// Render layers using repeated line models or a custom geometry
// Since QtQuick3D dynamic geometry from Python is complex, we render primitives for demo
Node { id: gcodeNode }
}
Text {
text: "QtQuick3D GCode Preview\nProgress: " + progress.toFixed(1) + "%"
color: "white"
font.pixelSize: 20
}
}