Update cq-cli to be able to set stl quality #381

Closed
opened 2021-06-25 12:43:31 +02:00 by Irev-Dev · 1 comment
Irev-Dev commented 2021-06-25 12:43:31 +02:00 (Migrated from github.com)

When it's ready new param will look like this
./cq-cli --codec stl --infile /input/path/script.py --outfile /output/path/newfile.stl --outputopts "deflection:0.3;angularDeflection:0.3;"

cq-cli issue

When it's ready new param will look like this `./cq-cli --codec stl --infile /input/path/script.py --outfile /output/path/newfile.stl --outputopts "deflection:0.3;angularDeflection:0.3;"` [cq-cli issue](https://github.com/CadQuery/cq-cli/issues/11)
jmwright commented 2021-06-25 12:53:52 +02:00 (Migrated from github.com)

Examples of file sizes at different deflection/angularDeflection settings when generating the braille signs on CadHub.

  • 0.1 - 40 MB
  • 0.2 - 11 MB
  • 0.3 - 5.3 MB

Using the highest quality for viewing on CadHub slows things down needlessly. The higher quality settings can be used when downloading the STL. I'm not sure how that will effect the file caching in S3 though since there will be two different STL files for the same script hash now. Unless a Download just always triggers a render/export at the highest quality at runtime and ignores the cached file.

Examples of file sizes at different deflection/angularDeflection settings when generating the braille signs on CadHub. * 0.1 - 40 MB * 0.2 - 11 MB * 0.3 - 5.3 MB Using the highest quality for viewing on CadHub slows things down needlessly. The higher quality settings can be used when downloading the STL. I'm not sure how that will effect the file caching in S3 though since there will be two different STL files for the same script hash now. Unless a Download just always triggers a render/export at the highest quality at runtime and ignores the cached file.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: h3n3/cadhub#381