이 페이지에서

GeometryRenderer QML Type

지오메트리 렌더링을 캡슐화합니다. 더 보기...

Import Statement: import Qt3D.Render 2.12
In C++: QGeometryRenderer
Inherits:

BoundingVolume

Status: Deprecated

이 타입은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 타입을 사용하지 않는 것을 강력히 권장합니다.

속성

상세 설명

GeometryRenderer는 Geometry를 그리는 데 필요한 모든 정보를 포함합니다. Geometry는 기하 데이터의 좌표를 포함하며, GeometryRenderer는 해당 데이터를 해석하는 방법을 지정합니다.

속성 설명

firstInstance : int

기본 인스턴스를 보관합니다.

firstVertex : int

첫 번째 정점을 포함합니다.

geometry : Geometry

기하학적 구조를 유지합니다.

indexBufferByteOffset : int

인덱스 버퍼 내의 바이트 오프셋을 저장합니다.

indexOffset : int

베이스 정점을 보관합니다.

instanceCount : int

인스턴스 수를 저장합니다.

primitiveRestartEnabled : bool

기본 재시작 플래그를 유지합니다.

primitiveType : enumeration

기본 데이터형을 저장합니다.

  • QGeometryRenderer.Points
  • QGeometryRenderer.Lines
  • QGeometryRenderer.LineLoop
  • QGeometryRenderer.LineStrip
  • QGeometryRenderer.Triangles
  • QGeometryRenderer.TriangleStrip
  • QGeometryRenderer.TriangleFan
  • QGeometryRenderer.LinesAdjacency
  • QGeometryRenderer.TrianglesAdjacency
  • QGeometryRenderer.LineStripAdjacency
  • QGeometryRenderer.TriangleStripAdjacency
  • QGeometryRenderer.Patches

Qt3DRender::QGeometryRenderer::PrimitiveType도 참조하십시오 .

restartIndexValue : int

재시작 인덱스를 저장합니다.

sortIndex : real [since 6.0]

깊이 정렬이 활성화되었을 때 정렬 인덱스를 재정의합니다.

프레임 그래프에서 깊이 정렬이 활성화된 경우, 렌더러는 바운딩 볼륨의 중심이 카메라로부터 얼마나 멀리 떨어져 있는지에 따라 오브젝트를 정렬하고, 가장 먼 오브젝트부터 가장 가까운 오브젝트 순으로 렌더링합니다.

이 속성을 사용하면 깊이 인덱스를 재정의하여 오브젝트가 렌더링되는 순서를 정밀하게 제어할 수 있습니다. 이는 모든 오브젝트가 카메라로부터 물리적으로 동일한 거리에 있을 때 유용합니다.

실제 값 자체는 중요하지 않으며, 오브젝트를 정렬할 순서를 정의한다는 점만 중요합니다. 값이 가장 작은 오브젝트가 먼저 그려지고, 그 다음으로 두 번째로 작은 오브젝트가 그려지는 식으로 정렬됩니다.

참고: 이 값을 -1.f로설정하면 해당 엔티티에 대한 명시적 정렬이 비활성화되고, 바운딩 볼륨 중심からの 거리에 따라 정렬되는 방식으로 되돌아갑니다.

이 속성은 Qt 6.0에서 도입되었습니다.

SortPolicy도 참조하십시오 .

vertexCount : int

정점 수를 저장합니다.

verticesPerPatch : int

패치당 정점 수를 저장합니다.

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