이 페이지에서

Qt3DRender::QMesh Class

class Qt3DRender::QMesh

사용자 정의 메쉬 로더. 더 보기...

헤더: #include <Qt3DRender/QMesh>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: Mesh
상속: Qt3DRender::QGeometryRenderer
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않도록 강력히 권장합니다.

공개 유형

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는 다음 형식을 지원합니다:

  • Wavefront OBJ
  • 스탠포드 삼각형 형식(Stanford Triangle Format) PLY
  • STL (STereoLithography)

또한 SDK가 설치되어 있고 fbx 지오메트리 로더 플러그인이 빌드되어 발견될 경우, QMesh는 다음 형식도 지원합니다:

  • Autodesk FBX

여러 오브젝트로 구성된 전체 씬을 불러오려면, 대신 Qt3DRender::QSceneLoader 을 사용하는 것이 좋습니다.

Qt3DRender::QSceneLoader도 참조하십시오 .

멤버 유형 문서

enum QMesh::Status

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

상수값설명
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

사용자 정의 메시가 포함된 파일의 URL( source )을 저장합니다.

액세스 함수:

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

알림 신호:

void sourceChanged(const QUrl &source)

[read-only] status : Status

메시 로딩 상태를 나타냅니다.

액세스 함수:

Qt3DRender::QMesh::Status status() const

알림 신호:

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

Qt3DRender::QMesh::Status도 참조하십시오 .

멤버 함수 문서

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

parent 를 사용하여 새로운 QMesh를 생성합니다.

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