cqMore aims to add more fundamental API to CadQuery. It's based on CadQuery 2.1 and Python 3.9.
Please use conda
to install CadQuery and its dependencies (see Getting started of CadQuery). Then, use conda
to install git
if you don't have it:
conda install git
To install cqMore directly from GitHub, run the following pip
command:
pip install git+https://github.com/JustinSDK/cqMore
This plugin has no dependencies other than the cadquery library. The examples list their own dependencies in the first comment, if any.
You may simply use cqmore.Workplane
to replace cadquery.Workplane
. For example:
from cqmore import Workplane
result = (Workplane()
.rect(10, 10)
.makePolygon(((-2, -2), (2, -2), (2, 2), (-2, 2)))
.extrude(1)
)
You may also attach methods of cqmore.Workplane
to cadquery.Workplane
, such as:
from cadquery import Workplane
import cqmore
cqmore.extend(Workplane)
result = (Workplane()
.rect(10, 10)
.makePolygon(((-2, -2), (2, -2), (2, 2), (-2, 2)))
.extrude(1)
)