Giter Site home page Giter Site logo

Comments (2)

openvmp avatar openvmp commented on May 31, 2024

It would actually be nice if CadQuery is used to generate the part design instead of OpenSCAD. Both would require some changes in the 'Bill-of-Material' library to support new type in part.json.
Please, note, it's important to have an intermediate 2D artifact so that DXF can be generated.

  1. CadQuery option

The changes for CadQuery would be similar to the code found in get_assembly.

  1. OpenSCAD option

The changes for OpenSCAD may got next to if part["type"] == "step" but the code will be a bit more complex given no native support for importing OpenSCAD in CadQuery. Alternatively, a preprocessing step could be added into the part rendering process (parts/render.py) which will generate the STEP file from whatever the source file is.

from openvmp-models.

openvmp avatar openvmp commented on May 31, 2024

Let me add some clarification.

One way to implement these custom parts is by implementing them in pure CaqQuery code.
There is now a good example: https://github.com/openvmp/openvmp-models/blob/main/robots/don1/assembly_wormgear.py
So such custom parts would be defined in separate files next to assembly_wormgear.py, and loaded into the corresponding links in the same way.

The other way is to maintain the blueprints of the custom parts next to all other parts in the parts folder.
However instead of using type: "step" in part.json, use part: "openscad".
That will require an extension to the bom.py library to be able to load OpenSCAD files in a way similar to the way it loads STEP files now.

from openvmp-models.

Related Issues (6)

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.