JustinSDK / cqMore

More fundamental API on CadQuery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

More fundamental API on CadQuery.

License:Apache License 2.0


Languages

Language:Python 100.0%