Closed lafar6502 closed 7 months ago
Hey. Thanks for reaching out. I am working on a new release in the next week or so. Should improve the windows version quite a bit.
The release is ready. Do you mind giving it another try?
https://github.com/DSchroer/dslcad/releases/v0.0.3
I have also updated the web editor and plan on working on improving the docs now.
Thank you! And yes, looks like things improved a bit - table example is working now, there's command line help.... Next question - i see it exports 3mf format now. This format can store color/material information (at least ive read that it does), but does dslcad language allow to define materials and use them for models?
Additional questions:
how do we parametrize a script? For example, i have table.ts script, but when calling dslcad to render it to 3mf file, i'd like to specify some initial variables, like width, height and depth of the table. Does command line allow that?
And what is the underlying geometry engine in dslcad? Is it based on open cascade?
but does dslcad language allow to define materials and use them for models?
Not yet but it is definitely in the plan. 0.0.3
put the groundwork together needed for more complex multi part designs and materials can now be added in a way that makes sense.
how do we parametrize a script?
Right now the easiest way is to use another script or a *.ini
file. If its something that you are looking for in CLI commands it should be easy to add.
For the ini method. Assume I have a file called params.ini
:
length=10
width=50
Then in my script I can do:
var params = ./params.ini();
cube(x=params.width, y=params.height);
Say I have a script (cube.ds
) like so:
var width = 10;
var height = 50;
cube(x=width, y=height);
I can have another script that calls it like this:
./cube.ds(width=50, height=100);
In the future the plan is to parse params out of the cli so you could specify:
dslcad ./cube.ds --argument width=50 --argument height=100
NOTE: The CLI method is not implemented yet
And what is the underlying geometry engine in dslcad? Is it based on open cascade?
Yes. DSLCAD uses OpenCascade under the hood.
Thanks. My use case is 3D visualization of configurable products, like blinds, roofs, awnings - i thought it can be easier to do with a parametric CAD tool instead of general-purpose 3D scene description. Based on the configuration (size, colors, various component options) dslcad would generate a 3D product representation and convert that to 3D file like 3mf. Then the file could be displayed in a web browser. And after every update of product configuration the 3D file would be recreated to show the updated look. Do you think dslcad would be fast enough for such visualization?
It really depends on how complex the model is. OpenCascade is really the bottleneck in most cases. If you are doing simple operations it should be reasonably fast. For a well designed model I think a parametric configurator should work fine.
BTW the WASM build runs with the same CLI interface. So you could even have an online hosted configurator that runs client side. As long as you build the right experience with it.
Currently it takes 2.3 seconds to run ALL the examples. (on my laptop)
Just to get a sense. Would you be making use of the preview
tool or just rendering to 3mf and doing your own display?
Marking this issue as closed since Windows builds are working again.
Hi, im checking the windows version from releases page (March 2023) and have noticed some problems
the tool seems promising and interesting, but without initial knowledge of it it's almost impossible to get started and achieve anything useful