Build every body style from an authored cage
- assets/src/archetype.py turns the sedan's hand-drawn shapes into rules (nose, bonnet, windscreen, roof peak, notch, hatch or cab rear) so each style script is a handful of measurements on a shared topology. - cagelib: open bodies (the buggy), tubs that drop to a floor (the pickup's bed, the buggy's cockpit), full-height tailgates, a per-style station merge. - Twelve new cages: hatchback, coupe, wagon, SUV, pickup, van, sports, supercar, muscle, kei, buggy and the truck's cab. The morph ignores axles outside the cage (the truck's rear axle sits under its load box). - Presets take their roof height from their cage; README images regenerated. - cages:build and cages:watch treat archetype.py as a shared module.
This commit is contained in:
parent
6b394bcbfc
commit
02e8854cc4
35 changed files with 553 additions and 38 deletions
25
assets/src/muscle.py
Normal file
25
assets/src/muscle.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
Muscle cage: a classic fastback, 4.8 x 1.9 x 1.31 m on a 2.78 m wheelbase. A long
|
||||
flat bonnet over a blunt nose, two long doors, a short deck.
|
||||
|
||||
python3 assets/src/muscle.py -- --out src/generator/cages/muscle.json
|
||||
(or `bun run cages:build muscle`; Blender only for --render)
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
import archetype # noqa: E402
|
||||
import cagelib # noqa: E402
|
||||
|
||||
L = 4.8
|
||||
DESIGN = archetype.design(
|
||||
'muscle', length=L, width=1.9, wheelbase=2.78, front_overhang=0.98, wheel_radius=0.345,
|
||||
nose=0.82, hood=0.96, roof=1.28, deck_height=1.02, tail=1.0,
|
||||
cowl=0.5, roof_front=-0.3, roof_rear=-1.0, deck=-1.75, rear='notch',
|
||||
sill=0.18, tumblehome=0.2, crown=0.03, hood_crown=0.02, nose_round=0.12, tail_round=0.1,
|
||||
nose_blunt=0.5, tail_blunt=0.5, nose_rake=0.0, doors=1,
|
||||
trunk={'kind': 'lid', 'front': -1.79, 'rear': -L / 2 + 0.045},
|
||||
)
|
||||
|
||||
cagelib.main(DESIGN)
|
||||
Loading…
Add table
Add a link
Reference in a new issue