ocp-tessellate
Tessellate OCP (https://github.com/cadquery/OCP) objects to use with threejs
Decision gist · record as of 2026-08-14
Yes. Active, low-friction package with no known vulnerabilities, permissive licensing, and a clear role in the OCP ecosystem. Install if you need to visualize CAD geometry in web-based viewers or embed tessellation in CAD tools; skip if you work exclusively with desktop CAD or have no web visualization requirement.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10+ and OCP 7.8 or 7.9 installed separately.
- Low friction: pure Python wheel with four lightweight runtime dependencies (webcolors, numpy, cachetools, imagesize).
- Active maintenance with a release in the last 30 days.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most projects.
last release 2026-07-15 (30 days) · last repo commit 2026-07-15 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 107,648 downloads/mo, #12,604 on PyPI
Alternatives
Verify before relying
from ocp_tessellate.convert import export_three_cad_viewer_js
# Accepts OCP shapes, CadQuery, or build123d objects
export_three_cad_viewer_js("shape", your_shape, filename="output.js")- Performance characteristics with large or complex assemblies (tessellation time, memory usage).
- Exact tessellation quality tuning options and their effect on mesh fidelity vs. file size.
- Compatibility with OCP versions beyond 7.8 and 7.9.
What it is and what it does
ocp-tessellate bridges CAD modeling libraries and web-based 3D viewers by converting solid geometry into triangulated meshes packaged as JSON. It walks hierarchical CAD structures—assemblies, compounds, sketches—preserves their tree organization, computes surface triangulations and discretized edges, and emits a format directly consumable by three-cad-viewer and related tooling.
The package offers three entry points: a high-level export function that writes a ready-to-load JavaScript file, a mid-level converter that produces an OcpGroup hierarchy and instance list, and a tessellation function for fine-grained control over mesh parameters like deviation and angular tolerance. It accepts per-object styling (colors, alphas, material modes) and renderer hints.
Use it for
- Export CAD designs to interactive 3D web viewers without manual mesh conversion.
- Embed tessellation in CAD tools to preview geometry changes in real time.
- Generate JSON scene trees for downstream processing or custom applications.
- Preserve assembly structure and metadata through the tessellation pipeline.
- Batch convert OCP shapes to web-ready formats for documentation or design review.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active, low-friction package with no known vulnerabilities, permissive licensing, and a clear role in the OCP ecosystem. Install if you need to visualize CAD geometry in web-based viewers or embed tessellation in CAD tools; skip if you work exclusively with desktop CAD or have no web visualization requirement.
Install
ocp-tessellate on PyPI
Before you install
Low friction: pure Python wheel with four lightweight runtime dependencies (webcolors, numpy, cachetools, imagesize). Active maintenance with a release in the last 30 days. Requires Python 3.10+ and OCP 7.8 or 7.9 as external dependencies.
Requires Python 3.10+ and OCP 7.8 or 7.9 installed separately.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
from ocp_tessellate.convert import export_three_cad_viewer_js
# Accepts OCP shapes, CadQuery, or build123d objects
export_three_cad_viewer_js("shape", your_shape, filename="output.js")
Verify before relying
- Performance characteristics with large or complex assemblies (tessellation time, memory usage).
- Exact tessellation quality tuning options and their effect on mesh fidelity vs. file size.
- Compatibility with OCP versions beyond 7.8 and 7.9.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packageswebcolorsnumpycachetoolsimagesize |
| Maintenance | Actively maintained 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 107,648 / month, #12,604 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: ocp_tessellate-3.4.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ocp shape to json mesh”
- ocp-tessellateConverts OCP (OpenCascade Python bindings) CAD shapes into…
- smplxLoads and manipulates SMPL-X, a unified 3D body model with 10,475…
- cadquery-ocp-proxyA proxy package that routes optional dependencies to either…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also cascadio · ocp-gordon · ocpsvg · cadquery-ocp · cadquery-ocp-novtk · build123d · cadquery · manifold3d · cadquery-ocp-proxy · smithy-json