이 페이지에서

Qt3DExtras::QSphereMesh Class

class Qt3DExtras::QSphereMesh

구형 메쉬. 더 보기...

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

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

속성

공개 함수

QSphereMesh(Qt3DCore::QNode *parent = nullptr)
bool generateTangents() const
float radius() const
int rings() const
int slices() const

공개 슬롯

void setGenerateTangents(bool gen)
void setRadius(float radius)
void setRings(int rings)
void setSlices(int slices)

신호

void generateTangentsChanged(bool generateTangents)
void radiusChanged(float radius)
void ringsChanged(int rings)
void slicesChanged(int slices)

상세 설명

속성 문서

generateTangents : bool

자동 접선 벡터 생성 플래그의 값을 저장합니다. 접선 벡터는 법선 벡터와 직각을 이룹니다.

액세스 함수:

bool generateTangents() const
void setGenerateTangents(bool gen)

알림 신호:

void generateTangentsChanged(bool generateTangents)

radius : float

구체의 반지름을 저장합니다.

액세스 함수:

float radius() const
void setRadius(float radius)

알림 신호:

void radiusChanged(float radius)

rings : int

메쉬의 링 수를 저장합니다.

액세스 함수:

int rings() const
void setRings(int rings)

알림 신호:

void ringsChanged(int rings)

slices : int

메쉬의 슬라이스 수를 저장합니다.

액세스 함수:

int slices() const
void setSlices(int slices)

알림 신호:

void slicesChanged(int slices)

멤버 함수 문서

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

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

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