Giter Site home page Giter Site logo

cadquery-skylark's Introduction

Wikihouse Skylark blocks in CadQuery

License: CC BY-SA 4.0

What and Why

The immediate goal is to remodel all available Skylark blocks using CadQuery. That will enable regular git workflow for developing the system (think text based diff, code reviews etc.).

Also the tooling to work on the system will be free and portable. CadQuery is based on python and OpenCascade and works on many systems.

CadQuery also captures the design intent directly and allows the creation of a fully parametric designs, paving the way to easier creation of custom blocks.

How

The first step is to reverse engineer the design of the existing blocks. A great tool for that is Freecad. However, none of the available exports can be directly opened in Freecad. Onshape on the other hand can open simple 3dm files and export to STEP format which can be opened by Freecad. The account is free and the browser based CAD works under various browsers and operating systems.

The model is still a mesh but the excelent parametric sketcher in Freecad can be used to uncover the dimensions by sketching over the mesh until it aligns perfectly.

Another usable input are the cutting DXF files. Don't try to open them in Freecad though. They contain large number of elements (mostly discretized text) that will take Freecad forever to load and even after it loads it is not workable (over 30k items in the object tree).

They can be opened in LibreCAD quite easily. Delete the two layers with the texts which brings the size of the file down from about 5MB to 200kB. It opens in Freecad quite nicely then.

Use Freecad to compare the original data with the newly generated data until it matches perfectly.

Prototype in notebooks to get a fast and easy visual feedback and as the code works itself out, refactor the working pieces to src and leave behind only sample calls to keep the visual feedback.

Rince & repeat for another block.

Install

$ micromamba create -n cadquery-skylark
$ micromamba activate cadquery-skylark
$ micromamba install -c conda-forge -c cadquery python=3.10 cadquery=master
$ pip install jupyter-cadquery jupyter-console ocp-vscode
$ pip install -e .
$ code .

In VSCode install OCP CAD Viewer extension.

cadquery-skylark's People

Contributors

zwn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

christinto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.