--- id: cascadio version: "0.1.1" license: The MIT License (MIT) Copyright (c) 2024 Michael Dawson-Haggerty Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the… (full text in the JSON record) license_treatment: unclear maintenance: active --- # cascadio — Convert STEP files to GLB using OpenCASCADE License: unclear · Maintenance: active · Downloads: 303.4K/mo ## What it is and what it does Cascadio is a minimal Python wrapper around OpenCASCADE that converts STEP (Stereolithography and CAD Exchange Format) files into GLB (glTF binary) format. It focuses on the practical problem of loading boundary representation (BREP) CAD geometry into Python for analysis and visualization without requiring users to build OpenCASCADE themselves. Unlike full OpenCASCADE bindings, cascadio is deliberately narrow in scope: it takes a STEP file and produces a triangulated mesh that can be immediately loaded by trimesh and other 3D libraries. The package's main value is in its build and packaging infrastructure. It uses scikit-build-core and cibuildwheel to produce pre-compiled wheels for multiple platforms and Python versions, eliminating the compilation burden on end users. This makes it practical to use OpenCASCADE—the de facto open-source BREP kernel—without the typical friction of building C++ dependencies. The library is actively maintained and supports Python 3.9 through 3.14. Use it for: - Load STEP files from CAD systems into Python for geometric analysis on triangulated meshes without needing FreeCAD or GMSH. - Convert legacy CAD geometry to GLB for visualization in web-based 3D viewers or game engines. - Batch-process STEP files into mesh format for machine learning pipelines that work with 3D geometry. - Integrate CAD model import into Python scientific computing workflows that rely on trimesh or similar mesh libraries. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts STEP files to GLB (glTF binary) format using OpenCASCADE, enabling rapid loading of 3D CAD geometry into Python via trimesh and similar libraries. Yes, if you need to load STEP files into Python and want to avoid building OpenCASCADE yourself. The pre-built wheels and active maintenance make it a practical choice. Pin your version carefully due to PyPI size constraints and the possibility of older releases being removed. Not necessary if you already have FreeCAD or GMSH integrated into your workflow. ## Install pip install cascadio uv add cascadio poetry add cascadio ## Installing cascadio Before you install: Medium install friction due to compiled wheels; the package is actively maintained with recent releases. Wheels are pre-built for Linux (non-MUSL), Windows x64, and macOS (x64 and ARM), eliminating the need to compile OpenCASCADE locally. Note: PyPI has size constraints and older versions may be deleted; pinning to a stable release is recommended. License in practice: Licensed under MIT with no restrictions on commercial or private use, modification, or redistribution. The license text is clear and permissive. Quickstart: pip install cascadio import cascadio glb_data = cascadio.convert_to_glb('model.step') Requires a pre-built wheel for your platform (Linux non-MUSL, Windows x64, or macOS x64/ARM); check PyPI for current platform support. Verify before relying: - Whether in-memory conversion (bytes input/output) is supported or planned as a near-term feature. - Performance characteristics and typical conversion time for various STEP file sizes. - Whether IGES format support has been implemented since the latest release. ## Package facts - License: The MIT License (MIT) Copyright (c) 2024 Michael Dawson-Haggerty Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the… (full text in the JSON record) (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 303.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags STEP to GLB conversion, CAD file format conversion, 3D mesh export STEP, OpenCASCADE Python binding, BREP to triangulated mesh, cad-import, 3d-mesh, geometry-processing [View on SkillFed](https://skillfed.io/packages/cascadio) · [View on PyPI](https://pypi.org/project/cascadio/)