Comments (2)
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.
- CadQuery option
The changes for CadQuery would be similar to the code found in get_assembly
.
- 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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvmp-models.