Evaluating Large Model Spatial Reasoning Through Parametric 3D Modeling
This article examines how parametric 3D modeling tasks can serve as a rigorous testbed for evaluating spatial reasoning in large language models. Using a scene of a pelican riding a bicycle along a seaside promenade as a case study, it explains why visual output alone is insufficient and how to structure evaluation across code executability, geometric and semantic correctness, and stability under parameter changes. It covers parameter dependency graphs, drivetrain geometry, chain path constraints, foot-placement constraints, perturbation-based testing, and a layered acceptance framework, providing a reproducible methodology for assessing whether generated models represent true engineering relationships rather than one-off coordinate assemblies.
1. Evaluating Spatial Reasoning Requires More Than a Pretty Render
In code generation and creative content tasks, 3D scenes are a useful vehicle for testing large model capabilities. A model must understand textual descriptions and translate object shapes, relative positions, motion states, and contact relationships into executable geometric rules.
However, there is a clear gap between “generating a nice-looking image” and “building a correct model.”
A bicycle might look structurally complete from one camera angle while actually having a misaligned frame and wheels, a chain passing through the chainring, feet hovering in mid-air, or wings not gripping the handlebars. If evaluation relies on a single rendered image, these errors are easily hidden by perspective, occlusion, and materials.
Evaluating spatial reasoning should therefore distinguish at least three levels:
- Code executability: whether the script runs to completion in the specified environment and produces output.
- Geometric and semantic correctness: whether the generated objects have the required structure and whether spatial relationships between objects hold.
- Stability under parameter changes: whether geometry and poses update coherently when inputs are modified, rather than depending on one-off coordinate patching.
The third level is especially important. It tests whether the model has established reusable constraint relationships rather than memorizing a particular image.
2. Turning a Creative Description Into an Engineering Task
One way to run this test is with a scene that is both narrative and mechanically constrained: on a seaside promenade at dusk, a pelican rides a dark green steel-frame bicycle, leaning forward, wings gripping the handlebars, with a tool bag hanging under the down tube and a rolled fishing net strapped to the rear rack.
The difficulty lies not in the number of objects but in the fact that the objects must be interrelated.
The pelican is not an independently placed character, and the bicycle is not a static backdrop. The handlebar width must coordinate with the wing contact positions; pedal positions must be determined by crank phase; feet must follow the pedals; and the chain must match the sizes of the front and rear sprockets.
For reproducibility, the task should require a complete script that runs without a GUI in a 3D modeling environment and saves the scene file, preview renders, and structured check results. Headless execution reduces manual variation and makes it easier to incorporate the task into batch testing pipelines.
Note that tool environments and specific versions must be verified before actual testing. Unconfirmed version numbers or feature availability must not be treated as established prerequisites. The test specification should clearly state the actual runtime environment, script entry point, output directories, and dependency requirements.
3. Build a Parameter Dependency Graph Instead of Piling Up Fixed Coordinates
3.1 Centralize key parameter definitions
The scene can retain the following five core inputs:
- Wingspan: 1.15 m
- Bicycle wheelbase: 1.02 m
- Front chainring teeth: 44
- Rear sprocket teeth: 16
- Crank phase: 35 degrees
These values are example inputs for the test scenario; they do not represent real product specifications, nor are they a complete set of parameters for designing a real bicycle.
Actual modeling also requires wheel diameter, crank length, chain pitch, handlebar height, character body proportions, and so on. Rather than demanding that scripts contain no numeric constants at all, a more reasonable specification is: all structural parameters that independently affect the model are declared centrally, and all relevant geometry is derived from those parameters or explicit proportional relationships.
For example, mesh subdivision level is a presentation-quality parameter, and contact tolerance is a validation parameter; neither needs to be derived from wingspan or wheelbase. What actually needs to be avoided is writing the handlebar position, wing tip positions, and foot positions as mutually unrelated fixed coordinates.
3.2 Define dependencies explicitly
A recommended dependency chain is:
- Wingspan and character joint proportions jointly determine the wings’ reachable range.
- The reachable range and riding posture jointly constrain handlebar width and grip positions.
- Wheelbase and frame proportions jointly determine the positions of wheel axles, the bottom bracket, and steering structures.
- Chain pitch and tooth count determine each sprocket’s pitch-circle size.
- Front and rear sprocket sizes plus center distance determine the chain path.
- Crank phase determines the left and right pedal positions.
- Pedal target positions constrain the character’s leg pose and foot contact positions.
This dependency graph is the core of parametric modeling. It helps developers check, when an input changes, which objects must be rebuilt and which constraints must be re-solved.
3.3 Distinguish wingspan from grip spacing
Wingspan typically describes the distance between wing tips when fully extended; it is not the same as the spacing between the wing tips while riding.
Directly setting handlebar width equal to wingspan can produce an exaggerated structure. A more reasonable approach is to compute the reachable range from wing segment lengths, folding state, and target posture, then determine grip positions.
If stylized proportions are used, the scaling factor should also be explicitly declared, and the joint posture should be re-solved whenever the wingspan changes. This makes it possible to determine whether the wings actually touch the grips, rather than simply scaling the handlebars and character together.
4. The Drivetrain Is a Key Test of Spatial Understanding
4.1 Tooth count must be linked to geometry
Changing only the decorative number of teeth on a chainring, without changing the pitch-circle size, does not demonstrate that the model understands chain transmission.
Let chain pitch be p and sprocket tooth count be N. The ideal pitch-circle radius can be written as:
r = p / [2 × sin(π / N)]
This formula describes the geometric relationship between adjacent chain-pin positions on the pitch circle. For visual demonstrations, an approximate circular chain path may also be used, but it must be declared a simplified model; a continuous circular approximation must not be treated as a complete mechanical design.
When the front chainring tooth count increases from 44 to 52 while chain pitch remains unchanged, the front pitch-circle radius should increase accordingly. The chain’s tangent points, wrap arcs, and total path length then need to be recomputed.
4.2 The chain path should consist of tangents and wrap arcs
In a simplified model where the front and rear sprockets are coplanar, the chain path can be decomposed into:
- Upper outer common tangent segment
- Rear sprocket wrap arc
- Lower outer common tangent segment
- Front chainring wrap arc
These segments must connect consistently; they should not be generated independently and then visually pieced together.
During acceptance, check whether the chain centerline passes through the expected tangent points, whether straight segments are tangent to the corresponding pitch circles, and whether the chain solid interferes with non-meshing parts. The chain has thickness, so reasonable clearances must also be set.
4.3 A longer path does not mean a real chain automatically lengthens
Here is an engineering issue that is easy to overlook: if the center distance is fixed and the front chainring grows, the required chain path typically changes. A real chain consists of discrete links and cannot stretch arbitrarily.
Therefore, the test must clearly specify which assumption is being used:
- Display-level rebuild: each run selects a new chain link count based on the new parameters.
- Fixed chain-length constraint: changes are absorbed by allowing center-distance adjustment or a tensioner.
- Idealized continuous chain: only the spatial path is verified, with no claim of satisfying real assembly requirements.
All three approaches have valid use cases, but they must not be mixed. Requiring only the chainring tooth count to change while wheelbase, chain length, and all other structures stay fixed—and also requiring the chain to remain taut—may have no mechanically feasible solution.
4.4 Separate static phase from motion consistency
A crank at a particular angle only demonstrates a static relationship. To show that the crank is actually driving the rear wheel, time or angular velocity must be introduced.
Under ideal transmission, neglecting slip, with the drive engaged, the rear sprocket’s angular velocity satisfies:
rear sprocket angular velocity = crank angular velocity × front chainring teeth / rear sprocket teeth
Whether the rear wheel rotates in sync also depends on the drive connection; if the bicycle is further required to roll without slipping, rear-wheel angular velocity must also be linked to ground displacement.
Therefore, static tests should evaluate “phase-consistent mechanical posture,” while dynamic tests further evaluate “transmission and motion consistency.”
5. Foot Constraints Must First Eliminate Semantic Contradictions
In the original task, one foot rests on a pedal while the other is at the low point of its return stroke. This description sounds intuitive, but in a standard double-crank mechanism, the left and right pedals are 180 degrees apart. At an arbitrary crank phase, the other pedal is not necessarily at its lowest point.
If the requirements simultaneously demand that the foot follows the pedal, that phase consistency is maintained, and that the other foot is always at the lowest point, the constraints can conflict.
A more rigorous definition is:
- The contact foot always fits the upper surface of the specified pedal.
- The non-contact foot follows an explicit return trajectory.
- The non-contact foot is only required to be at the low position within a specified phase interval.
- If the non-contact foot deviates from the pedal, this should be explicitly a character action, not a pedal position.
For the coordinate system, define the forward direction as X, lateral as Y, and vertical as Z. If the crank rotates in the XZ plane, the pedal center position can be computed from the bottom bracket position, crank length, and phase. The two pedals use phase θ and θ + 180 degrees respectively.
The foot target position cannot simply equal the pedal center. It must also account for pedal thickness, the sole reference surface, and contact offsets. The leg pose is then solved via joint constraints, and joint lengths are checked for stability.
This step effectively distinguishes “moving a foot to a target point” from “generating a structurally sound riding posture.”
6. Use Parameter Perturbations to Test Whether Rules Were Truly Established
One successful generation does not prove parametric capability. At least three test groups are recommended.
Baseline test
Run the script with initial parameters. Check that files are generated correctly, scene structure is complete, object naming is clear, and major contact relationships hold.
Single-variable tests
Vary the wingspan, chainring tooth count, and crank phase one at a time, changing only one input per run.
This helps locate defects in the dependency chain. For example:
- After increasing wingspan, the handlebars update but the wing tips stay at their original positions.
- After enlarging the chainring, the chain still follows the old path.
- After changing crank phase, the pedals rotate but the feet do not move accordingly.
Combined perturbation test
Simultaneously change wingspan from 1.15 m to 1.35 m, front chainring teeth from 44 to 52, and crank phase from 35 degrees to 140 degrees.
Combined tests can expose problems caused by local patching: individual changes look correct, but when multiple constraints change simultaneously, the result shows body interpenetration, chain collisions, or overextended joints.
Additionally, include boundary inputs within a reasonable range. For parameter combinations that cannot satisfy the constraints, a reliable script should output a clear failure reason rather than silently generating an incorrect model.
7. Establish a Layered Acceptance System
7.1 Execution layer
Check whether the script runs to completion, output files exist, logs contain no errors, and the scene can be reopened afterward.
“Successful exit” is only the minimum bar. Some scripts complete without errors but produce no valid objects.
7.2 Structure layer
Check whether wheels, frame, handlebars, chainring, chain, pedals, character, and accessories exist, and whether counts and hierarchy relationships match requirements.
Structured object identifiers should serve the verification process; completeness must not be inferred solely from rendered images.
7.3 Geometry layer
Recommended measurements include:
- Deviation between the two wheel-axle centers and the target wheelbase
- Distance from wing contact points to the effective grip area
- Gap and penetration between the sole and the pedal surface
- Tangency between chain and sprockets
- Unexpected collisions between the character and the frame
- Stability of joint lengths before and after parameter changes
Tolerances should be set according to scene scale, geometric precision, and intended use—not loosened ad hoc just to make a test pass.
7.4 Visual and narrative layer
Only after the above checks should the dusk atmosphere, seaside environment, pelican characteristics, material layering, and sense of riding motion be evaluated.
Visual quality matters, but it must not offset mechanical constraint failures. A sound approach is to set hard correctness thresholds first and score artistic presentation separately.
8. The Evaluation Process Must Be Reproducible, Not a One-Off Output Comparison
When using this task to evaluate model capability, record the complete input, generated script, run logs, parameter versions, number of modifications, and acceptance results.
Distinguish between success on first generation, success after automatic feedback, and success after manual modification. These reflect different capabilities.
To reduce randomness, run multiple independent generations of the same task and record:
- Percentage of executable results
- Pass rates for hard constraints
- Stability under parameter perturbation
- Number of repair rounds needed
- Degree of human intervention
These are suggested metrics, not conclusions from existing tests. Without complete scripts, logs, repeated trials, and consistent acceptance criteria, a single demonstration should not be used to claim that a model has a comprehensive advantage.
9. Conclusion: The Value of Spatial Reasoning Lies in Closed-Loop Constraints
The most valuable part of 3D generation tasks is not drawing a complex scene in one shot, but transforming natural-language requirements into a computable, verifiable, and maintainable network of relationships.
For developers, the focus should be on parameter dependencies, coordinate conventions, contact constraints, drivetrain relationships, and failure handling. For enterprise users, what matters more is whether outputs can be reproduced, automatically accepted, and remain reliable when requirements change.
A mature evaluation loop should look like this: textual requirements enter a parameter model, the parameter model drives geometry generation, geometric results undergo automated checks, and the check results feed back into generation and repair.
Only when structural and semantic consistency is preserved across parameter changes does the generated code truly move from “scene assembly” to engineering-grade modeling.
