GridMesh QML Type
定义一个顶点按网格排列的网格。更多...
| Import Statement: | import QtQuick |
属性
- resolution : size
详细说明
GridMesh 定义了一个由均匀分布在网格上的顶点组成的矩形网格。它用于生成geometry 。网格分辨率通过resolution 属性指定。
属性文档
resolution : size
该属性用于指定网格分辨率。分辨率的宽度和高度分别指定水平方向和垂直方向上顶点之间的单元格数量或间距。最小值和默认值均为 1x1,这对应于总共四个顶点,每个角落各有一个。对于非线性顶点变换,您可能需要将分辨率设置得更高。
| 结果 | QML 代码 | gridmesh.vert |
|---|---|---|
| | |
© 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.
