python读取i3dm数据
2024-09-08 17:53:35
path = r'D:\data\1.i3dm'
f = open(path, 'rb')
f.seek(4)
print('version:%d' % struct.unpack('I', f.read(4)))
print('byteLength:%d' % struct.unpack('I', f.read(4)))
print('featureTableJsonByteLength:%d' % struct.unpack('I', f.read(4)))
print('featureTableBinaryByteLength:%d' % struct.unpack('I', f.read(4)))
print('batchTableJsonByteLength:%d' % struct.unpack('I', f.read(4)))
print('batchTableBinaryByteLength:%d' % struct.unpack('I', f.read(4)))
print('gltfFormat:%d' % struct.unpack('I', f.read(4)))
f.seek(32)
print(f.read(104).decode(encoding = "utf-8"))
print('pos x:%f' % struct.unpack('f', f.read(4)))
print('pos y:%f' % struct.unpack('f', f.read(4)))
print('pos z:%f' % struct.unpack('f', f.read(4)))
print('scale:%f' % struct.unpack('f', f.read(4)))
f.close()
最新文章
- TODO:这是一个我的自媒体
- redis批量删除key
- cache缓存帮助类
- linux系统命令:yum和apt-get
- Xcode 8 的 Debug 新特性
- iOS 用protocol 和 用继承小体会
- DevExpress Crack
- c 函数及指针学习 7
- Raspberry Pi3 ~ Eclipse中添加wiringPi 库函数
- C# unix时间戳转换
- 计算方法(三)C#矩阵类库
- MTK USER版本禁止log输出
- js 去除金额的千位分隔符
- NET Core 指令启动
- 最新Flume1.7 自定义 MongodbSink 结合TAILDIR Sources的使用
- OpenJudge——0003:jubeeeeeat
- 全民Scheme(2):来自星星的你
- TOMCAT------>;web资源访问
- ubuntu下安装配置apache2(含虚拟主机配置)
- Jupyter Notebook(iPython)