Skip to main content

A simple interactive 3D viewer for CadQuery models using Plotly

Project description

CadQuery Simple Viewer

git

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. If None, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cadquery_simpleviewer-0.1.0.tar.gz (141.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cadquery_simpleviewer-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file cadquery_simpleviewer-0.1.0.tar.gz.

File metadata

File hashes

Hashes for cadquery_simpleviewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf5e40ba7c0340dfca7ca22615c7bb5b6d864957c651015a78b7a9ac036d6857
MD5 d8a61ecc3ff9ef2ae9b64ff0716e67dd
BLAKE2b-256 c81d9c0c6b0706025390b433c18cd3d0364a2a2557a7ebbffe9d4a20fcb2c56c

See more details on using hashes here.

File details

Details for the file cadquery_simpleviewer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cadquery_simpleviewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8da39cfbdcc0d775e83a99db672275dd98d33a709d47ab2414eff1f56c04184f
MD5 c5177cb2d95557803a9ae73e360c685b
BLAKE2b-256 7d60c916bca062a20a6ed1ef7151e3cc12e3f6ee90f89b7daef3d5131677620d

See more details on using hashes here.

Supported by

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