A simple interactive 3D viewer for CadQuery models using Plotly
Project description
CadQuery Simple Viewer
Functions
show(objects, names=None, colors=None, opacity=1.0, tessellation_tolerance=0.01)
Display one or more CadQuery objects with visible axes, grids, and tick labels. Best for inspecting part dimensions and position relationships.
Parameters:
objects: A single CadQuery object or a list of CadQuery objects.names: Optional list of legend labels.colors: Optional list of face colors.opacity: Transparency value (1.0 = fully opaque).tessellation_tolerance: Mesh precision (smaller = finer mesh).
show_arch(objects, names=None, colors=None, opacity=1.0, z=None, plane_color="whitesmoke", plane_size=50, plane_opacity=0.8, tessellation_tolerance=0.01)
Display one or more CadQuery objects in an architectural style with axis labels/ticks/grid hidden. Optionally adds a base plane at elevation z.
Parameters:
objects: A single CadQuery object or a list of CadQuery objects.names: Optional list of legend labels.colors: Optional list of face colors.opacity: Transparency value (1.0 = fully opaque).z: Optional height for a base plane. IfNone, no plane is displayed.plane_color: Color of the optional base plane.plane_size: Half side length of the base plane.plane_opacity: Opacity of the optional base plane.tessellation_tolerance: Mesh precision (smaller = finer mesh).
Quick Start
from cadquery import Workplane
from cadquery_simpleviewer.viewer import show, show_arch
box = Workplane("XY").box(10, 20, 5)
show(box)
show_arch(box, z=0)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cadquery_simpleviewer-0.1.8.tar.gz.
File metadata
- Download URL: cadquery_simpleviewer-0.1.8.tar.gz
- Upload date:
- Size: 147.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a11a69bb87e5717915270e17640855dbe6d0d030aac4342c2350f558a1eeefb
|
|
| MD5 |
479df7388ff2a5900e961233eaec40a5
|
|
| BLAKE2b-256 |
1c5ad6b1880d254c24f36201356e8c1224c0c272c49c4bf1ef55593a461f3537
|
File details
Details for the file cadquery_simpleviewer-0.1.8-py3-none-any.whl.
File metadata
- Download URL: cadquery_simpleviewer-0.1.8-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93da216675052f67497350d67fa94da1fa5fc8cdf37b384f838efb1fdc3ca61d
|
|
| MD5 |
004cee93adeb0d7b1795aff2914ed386
|
|
| BLAKE2b-256 |
d6b93133bf31f310bebdaf67f067cddbb443ee1caf6188bd463accceede594bb
|