QMesh Class

class Qt3DRender::QMesh

커스텀 메시 로더. 더 보기...

Header: #include <Qt3DRender/QMesh>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: Mesh
상속합니다: Qt3DRender::QGeometryRenderer
상태: Deprecated

공용 유형

enum Status { None, Loading, Ready, Error }

속성

공용 기능

QMesh(Qt3DCore::QNode *parent = nullptr)
QString meshName() const
QUrl source() const
Qt3DRender::QMesh::Status status() const

공용 슬롯

void setMeshName(const QString &meshName)
void setSource(const QUrl &source)

신호

void meshNameChanged(const QString &meshName)
void sourceChanged(const QUrl &source)
void statusChanged(Qt3DRender::QMesh::Status status)

상세 설명

다양한 형식의 외부 파일에서 메시 데이터를 로드합니다. Qt3DRender::QMesh 는 단일 메시로 데이터를 로드합니다.

Qt3D 5.9에서 QMesh는 다음 형식을 지원합니다:

  • 파면 오브젝트
  • 스탠포드 트라이앵글 포맷 PLY
  • STL(스테레오리소그래피)

SDK가 설치되어 있고 fbx 지오메트리 로더 플러그인을 빌드하여 찾은 경우 QMesh는 다음 포맷도 지원합니다:

  • Autodesk FBX

여러 오브젝트로 구성된 전체 씬을 로드하려면 Qt3DRender::QSceneLoader 을 사용해야 합니다.

Qt3DRender::QSceneLoader참조하세요 .

멤버 유형 문서

enum QMesh::Status

이 열거형은 사용된 셰이더의 상태를 식별합니다.

Constant설명
Qt3DRender::QMesh::None0소스 메시가 아직 소스를 할당받지 못했습니다.
Qt3DRender::QMesh::Loading1메시 지오메트리가 로드 중입니다.
Qt3DRender::QMesh::Ready2메시 지오메트리가 성공적으로 로드되었습니다.
Qt3DRender::QMesh::Error3메시를 로드하는 동안 오류가 발생했습니다.

프로퍼티 문서

meshName : QString

메시의 이름을 보유합니다.

함수에 액세스합니다:

QString meshName() const
void setMeshName(const QString &meshName)

알림 신호:

void meshNameChanged(const QString &meshName)

source : QUrl

사용자 정의 메시가 포함된 파일의 source URL을 보유합니다.

함수에 액세스합니다:

QUrl source() const
void setSource(const QUrl &source)

알림 신호:

void sourceChanged(const QUrl &source)

[read-only] status : const Status

메시 로딩 상태를 유지합니다.

기능에 액세스합니다:

Qt3DRender::QMesh::Status status() const

알림 신호:

void statusChanged(Qt3DRender::QMesh::Status status)

Qt3DRender::QMesh::Status참조하세요 .

멤버 함수 문서

[explicit] QMesh::QMesh(Qt3DCore::QNode *parent = nullptr)

parent 를 사용하여 새 QMesh를 구성합니다.

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