Skip to main content

Python Interface for the OpenCTM File Format

Project description

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')

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page