Skip to main content

OpenCAD core — geometry kernel, constraint solver, feature tree, and fluent modelling API

Project description

opencad

The OpenCAD core: geometry kernel, constraint solver, feature tree, and the fluent modelling API — with no web framework and no network dependency.

Install:

pip install opencad          # pydantic + numpy only
pip install "opencad[occt]"  # add the OCCT B-rep backend
pip install "opencad[full]"  # OCCT + scipy solver + networkx graph analysis

Use:

from opencad import Part, Sketch

profile = Sketch(name="Plate").rect(80, 30).circle(3, center=(8, 8), subtract=True)
plate = Part().extrude(profile, depth=4, name="Plate")
plate.fillet(edges="all", radius=1.0)

Every fluent call appends a node to a rebuildable feature DAG, which you can serialize, edit, and replay. See the repository ARCHITECTURE.md for the kernel/solver/tree design and TOPOLOGY.md for topological naming.

Packages

Module Responsibility
opencad Fluent Part/Sketch API, RuntimeContext, CLI, design artifacts
opencad.kernel B-rep operations, OCCT and analytic backends, KernelClient
opencad.solver 2-D constraint solving (NumPy/SciPy and SolveSpace backends)
opencad.tree Feature DAG, incremental rebuild, branching, expressions

Related distributions

  • opencad-agent — natural-language modelling on top of this package
  • opencad-backend — FastAPI HTTP service exposing all of the above

Tests

pytest

The suite runs against this package alone. A few integration tests exercise repository files (examples/, docs/schemas/) and skip automatically when the package is tested outside a monorepo checkout.

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

opencad-0.2.0.tar.gz (61.4 kB view details)

Uploaded Source

Built Distribution

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

opencad-0.2.0-py3-none-any.whl (73.9 kB view details)

Uploaded Python 3

File details

Details for the file opencad-0.2.0.tar.gz.

File metadata

  • Download URL: opencad-0.2.0.tar.gz
  • Upload date:
  • Size: 61.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for opencad-0.2.0.tar.gz
Algorithm Hash digest
SHA256 26915da2116e7efdd2881b3c2712684f86d8c7984786fdf3990d24db2b653dde
MD5 0c85c013b0ab8e608dbcaf632c00c08d
BLAKE2b-256 22c9a15482d3879331e1b894b5a60d5c47f33a64fcbbba6ae73621859af3a1aa

See more details on using hashes here.

File details

Details for the file opencad-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: opencad-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 73.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for opencad-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2457a94f21e818c16d3b8a8cd07fe66a13eff056f2bfa39e3dc26694121215
MD5 70fb34adb0d5509c6bd376a0ddb18bf5
BLAKE2b-256 3398c3e4552d92b46dbc785293d757a35e38e040e9ebe1d93e3786ba23701382

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