GridGeometry QML Type
그리드 렌더링을 위한 사용자 지정 지오메트리 공급자입니다. 더 보기...
Import Statement: | import QtQuick3D.Helpers |
Inherits: |
속성
- horizontalLines : int
- horizontalStep : real
- verticalLines : int
- verticalStep : real
상세 설명
이 헬퍼는 씬에 그리드를 표시할 수 있는 그리드 지오메트리를 구현합니다.
예를 들어, 다음 코드 조각은 하나의 조명이 있는 씬에서 양방향으로 19개의 셀이 있는 그리드를 표시합니다. 추가 변형이 없으면 기본적으로 그리드가 카메라를 향하게 됩니다.
View3D { anchors.fill: parent camera: camera PerspectiveCamera { id: camera position: Qt.vector3d(0, 0, 600) } DirectionalLight { position: Qt.vector3d(-500, 500, -100) color: Qt.rgba(0.4, 0.2, 0.6, 1.0) ambientColor: Qt.rgba(0.1, 0.1, 0.1, 1.0) } Model { scale: Qt.vector3d(100, 100, 100) geometry: GridGeometry { horizontalLines: 20 verticalLines: 20 } materials: [ DefaultMaterial { } ] } }
Qt Quick 3D - 커스텀 지오메트리 예제 및 Model 을참조하세요 .
프로퍼티 문서
horizontalLines : int |
그리드의 수평선 수를 지정합니다. 기본값은 1000입니다.
horizontalStep : real |
수평선 사이의 간격을 지정합니다. 기본값은 0.1입니다.
verticalLines : int |
그리드의 세로선 수를 지정합니다. 기본값은 1000입니다.
verticalStep : real |
세로선 사이의 간격을 지정합니다. 기본값은 0.1입니다.
© 2025 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.