Parametric Cosplay Design Schematics
Go to file
Leni Aniva c3f9d5a3be
fix: Use two sets of handles
2025-07-04 19:37:00 -07:00
examples feat: Add mystery primitive and MoI example 2024-06-14 20:55:04 -07:00
nhf fix: Use two sets of handles 2025-07-04 19:37:00 -07:00
.gitignore chore: Update cadquery; ignore build/ 2024-11-13 22:22:57 -08:00
README.md build: Add parallelization of unit test 2025-07-04 16:11:18 -07:00
pyproject.toml build: Add parallelization of unit test 2025-07-04 16:11:18 -07:00
uv.lock build: Add parallelization of unit test 2025-07-04 16:11:18 -07:00

README.md

Cosplay

This is the design repository for NorCal Hakkero Factory No. 1, where we use parametric CAD to make cosplay props. We design cosplay props based on an engineering point of view.

NorCal Hakkero Factory № 1

北加国営八卦炉第一工場

Most cosplay schematics are created with Blender, CadQuery, and Inkscape.

Development

Install uv, and then execute

uv sync

To get a development environment, run

uv venv

Then, either follow the instruction to activate this venv, or install direnv and create the file

# .envrc
source .venv/bin/activate

Test the environment with python3 -c "import nhf"

To visualize an object, create a file visualize.py, and run cq-editor:

python3 -m cq_editor visualize.py

Folder Structure

  • nhf/parts/: Ready-made parts
  • nhf/$WORK/$CHARACTER: Design for an individual character

For each individual character, the __init__.py script stores the overall build entry point and the entry point for all unit tests.

Testing

Run all tests with

unittest-parallel

Troubleshooting

Wayland

If there is the error

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x3
  Serial number of failed request:  28
  Current serial number in output stream:  29

Export the environment variable

export QT_QPA_PLATFORM=xcb