Potentially Add Additional cq-kit STEP Export Options to Core
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 541
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 5
Description
This is a follow-up issue to #1082 so that we can keep track of the idea and decide if we want to expand the options in the future.
STEP export now takes a kwargs parameter that allows any number of options to be passed. Only two were added: `write_pcurves` and `precision_mode`, but cq-kit has other settings that might be useful as well. Here's a relevant quote from @michaelgale in the issue.
> This is main reason I added alternative STEP export to [CQ-Kit](https://github.com/michaelgale/cq-kit)--the STEP files with the P-Curves were simply too big. Furthermore, the floating point residue round off of coordinate values also consumed needless bytes resulting in bigger files. More details are in the [StepFileExporter](https://github.com/michaelgale/cq-kit/blob/f5820c67030f14ae8e387872ae859ad023983c8e/cqkit/cq_files.py#L198) class docstring.
Here is a summary of the additional options that we might want to consider.
**tolerance**: Numerical tolerance or resolution of floating point data, the number of significant figures, e.g. 9 represents 1x10^-9
**add_meta_data**: Enables or disables writing additional meta data to file.
**metadata**: Dictionary which stores STEP file meta data for HEADER. Used with the above.
There is custom code in the KiCAD model generator that adds the license to the STEP file, but I think the `authroization` part of the metadata header in cq-kit could serve the same purpose if these options were integrated into CQ core. See the docstring mentioned in the quote above for more information.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.