Skip to content

Instantly share code, notes, and snippets.

@Jojain
Jojain / cqrefactorideas.py
Created June 9, 2022 21:29
CQ refactor ideas
"""
Below is presented some real code lacking implementation. The main purpose is to expose my thought about what a better API of
CadQuery could be. I have not thought to much in depth of the problematic such an API could bring but its up to be discussed.
My thoughts are that currently the CQ fluent API through the Workplane class (and the Sketch one) try to do too much different things at
the same time. This is great because it mostly succeed in this task but it's also wrong because there is a lot of edgy cases where it just doesnt work
well.
In order to tackle down this problem I think a strongly structured OOP API would help in debugging and adding new features.