volume_raycasting_example.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:ModernGL-Volume-Raycasting-Example 作者: ulricheck 项目源码 文件源码
def main():

    # assumes unsigned byte datatype and volume dimensions of 256x256x225
    volsize = (256, 256, 225)
    volume = load_raw(os.path.join("data", "head256.raw"), volsize)
    tff = load_transferfunction(os.path.join("data", "tff.dat"))

    app = QtWidgets.QApplication([])
    window = QGLControllerWidget(volume, volsize, tff)
    window.move(QtWidgets.QDesktopWidget().rect().center() - window.rect().center())
    window.show()
    app.exec_()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号