Acceptance Methods for Parametric 3D Modeling
A scene that looks complete on the first run can still fail as a model: changing wingspan, tooth count, or crank phase breaks grips, chain paths, or pedal contact because the script stored fixed coordinates instead of derived geometry. This article defines an acceptance method for parameter-driven modeling, for geometry scripts from coding tools and for hand-written batch pipelines, based on constraint chains, numeric assertions, and a constants–derived values–assembly structure.
Turning a written description into a computable 3D scene usually fails less on “draw a bird and a bicycle” and more on whether spatial relationships between parts still hold when parameters change. Many generated results look complete on the first run. Change the wingspan, sprocket tooth count, or crank phase, and the grips leave the wingtips, the chain intersects the frame, or the webbed feet leave the pedals. That means the script stacked a set of fixed coordinates instead of building a model. This article treats that class of failure as an acceptance method for parameter-driven modeling. It applies to geometry scripts produced by coding assistants and to hand-written batch modeling pipelines.
Separate “code that runs” from “a model”
The minimum bar for code is that the script finishes in headless batch mode, exports or generates a set of meshes, and does not error. The bar for a model is higher: geometry must be derived from one set of global constants, and the physical relationships among those constants must remain valid inside a reasonable range.
Split the scene into three constraint chains instead of stacking objects in the order “bird first, bicycle second.”
- Scale chain. The character’s wingspan sets handlebar width and grip spacing. Wheelbase sets the front-to-rear span of the diamond frame. With the body leaned forward and both wings extended, the wingtips should land inside the grip envelopes, not float near the bars.
- Drivetrain chain. Chainring teeth, cog teeth, and wheel diameter together set the chain pitch path and the required chain length. The chain should follow the common tangents of the front and rear sprockets, stay tensioned, and not pass through frame tubes.
- Phase chain. Crank angle sets pedal height on both sides. One webbed foot contacts the pedal face; the other hangs near the bottom of the recovery stroke. The contact side must update with phase. It cannot be hard-coded to one angle.
Only when all three chains are computed from top-level constants can a reviewer change numbers, not code, and still expect a correct result.
Write acceptance as executable parameter experiments
Do not replace checks with subjective scores. Fix a baseline set of constants—wingspan, wheelbase, chainring teeth, cog teeth, crank phase—and generate a baseline scene. Then change only three of them as regressions:
- Increase wingspan and check that the bars widen and that grip spacing still encloses both wingtips.
- Increase chainring tooth count and check that sprocket radius and chain path are recomputed, with no floating segments or intersections.
- Change crank phase by a large amount and check that the driving foot still meets the pedal, the free foot stays low on the recovery stroke, and body lean matches crank direction.
Each check should be a numeric assertion, not a screenshot that “looks close enough.” Examples: distance from a wingtip to the matching grip center is less than grip radius plus an allowed gap; distance from pedal center to the contacting sole is less than a contact threshold; deviation of chain sample points from the two-sprocket common tangents is a small fraction of pitch; sprocket radius is computed from tooth count and pitch on a circle, not drawn as a circle that merely looks right.
Script structure: constants, derived values, assembly
Use three sections.
The first section holds only global constants. Functions must not contain magic numbers that are decoupled from those constants. Wingspan, wheelbase, tooth counts, phase, wheel diameter, pitch, tube diameter, saddle-height ratio, and similar values are declared in one place. Stylization may change materials and how far silhouettes are exaggerated, but it must not bypass these quantities with hard-coded coordinates.
The second section only derives values. Typical derived quantities include sprocket pitch radii, theoretical chain length, front and rear wheel centers, bottom-bracket (crank-axle) position, handlebar center and the two grip points, left and right crank endpoints, and pedal-plane normals. Derived functions should be pure: constants in, coordinates and sizes out, with no mesh creation. Unit tests can then assert the math without starting a 3D environment.
The third section assembles meshes. The diamond frame is head tube, top tube, down tube, seat tube, and chainstays. A tool bag hangs on the down tube. A rolled fishing net is lashed to the rear rack. Wheelset, cranks, pedals, and chain attach to the derived coordinates in order. The torso aligns to the frame by lean angle, wing-bone endpoints bind to the grip points, and the feet bind to the pedal or to the low hovering point. Bindings use computed transforms, not absolute coordinates left over from manual dragging.
The sketch below is independent of any particular modeling environment:
chainring_radius = (chainring_teeth * pitch) / (2 * pi)cog_radius = (cog_teeth * pitch) / (2 * pi)crank_rad = radians(crank_phase)pedal_down = bottom_bracket + crank_length * (sin(crank_rad), 0, -cos(crank_rad))pedal_up = bottom_bracket + crank_length * (sin(crank_rad+pi), 0, -cos(crank_rad+pi))grip_half = wingspan * grip_ratio
Do not fake the chain with one stretched cylinder. At least sample the external tangent points of the front and rear sprockets, keep the upper and lower runs separate, and add chain links along the sprocket arcs. When tooth count changes, those sample points must be recomputed.
Spatial reasoning shows up as observable defects
Generation failures are usually concrete enough to list as defects.
- Scale failure. The bird is too large to sit in the frame, or bar width does not follow wingspan, so the wingtips grip empty air.
- Drivetrain disconnect. Tooth count changes but radius does not; chain length stays at the old value, so the chain breaks, overlaps, or passes through the down tube.
- Phase inconsistency. The cranks are drawn at 140 degrees while both feet remain in a 35-degree pose, or both feet are planted, which contradicts “one foot hovering.”
- Assembly hierarchy errors. Pedals do not rotate with the cranks, the net does not follow the rack, or the tool bag does not sit on the down tube.
- Style out of bounds. Exaggerated shapes destroy measurable relationships, so a reviewer cannot tell art direction from geometry error. Keep style parameters separate from structural parameters. Style should affect only bevels, textures, and secondary decoration.
In engineering terms, spatial reasoning is whether the model maintains these relationships, not whether it can recite a graphics API. When comparing code-generation approaches, use the same prompt, the same constants, and the same assertions. Do not treat better wording as better geometry.
How to write the prompt and the deliverable
The prompt should state both appearance and testable constraints. Appearance—dusk coastline, dark green steel frame, canvas tool bag, fishing net, and similar details—is for style. The constraint section must say that all geometry is derived from top-level constants; changing wingspan changes the bars; changing tooth count recomputes the chain; changing phase recomputes both feet. It should also require a single script that runs headless and does not depend on a reference image.
Review more than the final image. Check that constants are centralized, that functions do not still contain magic numbers, that assertions pass after the three numeric edits, and that failure logs name which constraint broke. If the script hard-codes a coordinate table, a polished picture is still not parameterized.
Fit this into a team workflow
Turn the scene into a regression sample in code review. Every generated or hand-edited geometry script runs the baseline and the three perturbations and reports distances, chain-length error, and contact booleans. Set thresholds from pitch and tube diameter: tight enough to catch obvious intersections, loose enough that numeric noise does not fail the build.
Art and engineering requirements can coexist. Overall stylization is allowed, but part relationships must be checkable by parameters. Coding tools draft the assembly and the formulas; engineers converge the constants and add assertions and boundaries—for example, an explicit failure when tooth count is too small, or when wingspan makes the bars exceed a stable frame range. Responsibilities stay clear.
The practical takeaway is how to judge whether “text to 3D” is reliable. Skip arguments about look. Prepare a linked set of parameters and a few distance assertions, and you can tell a maintainable model from a one-off posed shot that cannot be reproduced.
