Skip to content

JustinSDK/cqMore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a490603 · Jun 24, 2022
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cqMore 1.0

cqMore aims to add more fundamental API to CadQuery. It's based on CadQuery 2.1 and Python 3.9.

cqMore

Installation

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

Dependencies

This plugin has no dependencies other than the cadquery library. The examples list their own dependencies in the first comment, if any.

Usage

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)
         )

API Reference