Skip to content

Instantly share code, notes, and snippets.

View marcus7070's full-sized avatar

Marcus Boyd marcus7070

  • Adelaide, Australia
View GitHub Profile
@marcus7070
marcus7070 / cq-internal-example.md
Last active January 30, 2023 23:15
CQ internals example

To see a bit more about how the internals of CadQuery work, let's mokeypatch some more verbose string represenations and create a simple model.

import cadquery as cq


def _ctx_str(self):
    return (
        f"CQContext object with id: {id(self)}\n"
        + f"    pendingWires: {self.pendingWires}\n"