Skip to content

lejafar/Python-OpenCTM

Repository files navigation

Python-OpenCTM

PyPI version

Python Interface for the Open-CTM File Format

Python-OpenCTM is a Python interface for the OpenCTM file format. A format that allows a geometry to be compressed to a fraction of comparable file formats (3DS, STL, COLLADA...).

Pre-built python (3.5-3.10) wheels available for Linux, MacOS and Windows

Installation

pip install python-openctm

Usage

import openctm

# read
mesh = openctm.import_mesh('foo.ctm')

print(mesh.vertices.shape)
# (124, 3)

# write
openctm.export_mesh(mesh, 'bar.ctm')