2024-06-14 20:39:17 -07:00
|
|
|
# Cosplay
|
|
|
|
|
2024-12-06 12:42:26 -08:00
|
|
|
This is the design repository for NorCal Hakkero Factory No. 1, where we use
|
|
|
|
parametric CAD to make cosplay props.
|
2024-06-14 20:39:17 -07:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
Most cosplay schematics are created with Blender, CadQuery, and Inkscape. To
|
|
|
|
enter into a CadQuery environment, install `poetry` and use
|
|
|
|
```sh
|
|
|
|
poetry install
|
|
|
|
poetry shell
|
|
|
|
```
|
|
|
|
and this should succeed
|
|
|
|
```sh
|
|
|
|
python3 -c "import nhf"
|
|
|
|
```
|
|
|
|
|
2024-12-06 12:42:26 -08:00
|
|
|
To visualize an object, create a file `visualize.py`, and run `cq-editor`:
|
|
|
|
|
|
|
|
``` sh
|
|
|
|
python3 -m cq_editor visualize.py
|
|
|
|
```
|
|
|
|
|
2024-06-26 06:48:32 -07:00
|
|
|
## Testing
|
|
|
|
|
|
|
|
Run all tests with
|
|
|
|
``` sh
|
|
|
|
python3 -m unittest
|
|
|
|
```
|
|
|
|
|