All Projects → trelau → Pyocct

trelau / Pyocct

Licence: lgpl-2.1
Python bindings for OpenCASCADE via pybind11.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pyocct

range3
Range Software - Finite Element Analysis
Stars: ✭ 31 (-64.37%)
Mutual labels:  engineering, cad
Autocadcodepack
AutoCAD Code Pack: A powerful library that helps you to develop AutoCAD plugins using the AutoCAD .NET API
Stars: ✭ 207 (+137.93%)
Mutual labels:  cad, engineering
Freecad
This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler. Issues are managed on our own bug tracker at https://www.freecadweb.org/tracker
Stars: ✭ 10,366 (+11814.94%)
Mutual labels:  cad, engineering
Xeokit Sdk
Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
Stars: ✭ 316 (+263.22%)
Mutual labels:  cad, engineering
Maker.js
📐⚙ 2D vector line drawing and shape modeling for CNC and laser cutters.
Stars: ✭ 1,185 (+1262.07%)
Mutual labels:  cad
Soda Php
A simple library to make it easier to access SODA services from PHP
Stars: ✭ 60 (-31.03%)
Mutual labels:  engineering
Phidl
Python GDS layout and CAD geometry creation
Stars: ✭ 56 (-35.63%)
Mutual labels:  cad
Soda Android Sdk
Stars: ✭ 31 (-64.37%)
Mutual labels:  engineering
Jp01
JP01 - Arisu Custom CNC Aluminum Unibody Keyboard Case
Stars: ✭ 84 (-3.45%)
Mutual labels:  cad
Drakon Extruder
3D Printable 3:1 Geared Extruder
Stars: ✭ 80 (-8.05%)
Mutual labels:  cad
Librepcb
A powerful, innovative and intuitive EDA tool for everyone!
Stars: ✭ 1,173 (+1248.28%)
Mutual labels:  cad
Fhir.js
Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries
Stars: ✭ 61 (-29.89%)
Mutual labels:  engineering
Orthopy
Orthogonal polynomials in all shapes and sizes.
Stars: ✭ 75 (-13.79%)
Mutual labels:  engineering
Datasync
Desktop / Console application for updating Socrata datasets automatically.
Stars: ✭ 60 (-31.03%)
Mutual labels:  engineering
Angelcad
script based 3D solid modeller
Stars: ✭ 83 (-4.6%)
Mutual labels:  cad
Fosscad Repo
Official FOSSCAD Library Repository
Stars: ✭ 1,076 (+1136.78%)
Mutual labels:  cad
Libfive Unity
A CSharp wrapper for libfive with Unity bindings
Stars: ✭ 69 (-20.69%)
Mutual labels:  cad
Wl Bim Viewer
用于vue框架的bim三维模型预览插件。Bim 3D model preview plugin for vue framework.
Stars: ✭ 78 (-10.34%)
Mutual labels:  cad
Onshape To Robot
Converting OnShape assembly to robot definition (SDF or URDF) through OnShape API
Stars: ✭ 69 (-20.69%)
Mutual labels:  cad
Accupy
Accurate sums and dot products for Python.
Stars: ✭ 65 (-25.29%)
Mutual labels:  engineering

pyOCCT — Python bindings for OpenCASCADE

Documentation Status Join the chat at https://gitter.im/pyOCCT/Lobby

Workflow Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

The pyOCCT project provides Python bindings to the OpenCASCADE geometry kernel via pybind11. Together, this technology stack enables rapid CAD/CAE/CAM application development in the popular Python programming language.

If you are looking for Python bindings for CAE capabilities, check out pySMESH.

Enabling technology

The pyOCCT core technology stack includes:

  • OpenCASCADE: Open CASCADE Technology (OCCT) is an object-oriented C++ class library designed for rapid production of sophisticated domain-specific CAD/CAM/CAE applications.

  • pybind11: A lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code.

Getting started using conda

Conda packages are available for a number of platforms and Python versions. Get started with:

conda create -n pyocct python=3.8
activate pyocct
conda install -c conda-forge -c trelau pyocct

This will create an environment named "pyocct" and install pyOCCT and all necessary dependencies. You can replace the "pyocct" environment name with anything you'd like.

To support minimal visualization the wxPython package is required and can be installed via conda by:

conda activate pyocct
conda install -c conda-forge wxpython

Navigate to the examples/ folder and run from the active environment:

python import_step.py

and you should see the following image in the viewing tool if all the requirements are correctly installed.

compressor

Installation files can be cleaned up by:

conda clean -a

Building from sources

To build from sources, you must generate the binding source code locally. This can be done using the pyOCCT_binder project which is available as a git submodule in this repository within the binder/ folder.

Clone this repository and use the --recurse-submodules command to initialize and download the external pyOCCT_binder project:

git clone --recurse-submodules https://github.com/trelau/pyOCCT.git

The binder uses clang to parse the C++ header files of the libraries and generate the source code. If you are familiar with conda, an environment can be created for this task by:

conda env create -f binder/environment.yml

If all the necessary dependencies are available, the binder can be run to generate the binding sources:

python binder/run.py -c binder/config.txt -o src

Be sure and check the output from the binding generation process in the command prompt in case there are missing header files or other errors.

After the binding sources are generated:

mkdir build
cd build
cmake ..

Note that PTHREAD_INCLUDE_DIR will likely need defined manually since it cannot typically not be automatically found by CMake.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].