NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Computational LEGO technic design

Hao Xu, Ka-Hei Hui, Chi-Wing Fu, Hao Zhang

TL;DR

This paper introduces the first fully automatic method to transform a 3D line sketch into a buildable, structurally sound, and functional LEGO Technic model. By framing the challenge as a "sketch cover" problem and using a two-stage optimization process, the system can generate complex assemblies—including those with moving joints—in seconds or minutes, a task that takes human experts hours.

What Problem Does This Paper Address?

While previous research has automated the design of regular "block-based" LEGO models, LEGO Technic presents a much steeper computational challenge. Unlike standard bricks that stack vertically, Technic uses a "frame-based" system of beams, axles, pins, and connectors.

The design space is astronomical: beams can be arranged in multiple layers, orientations, and connection configurations. A simple square with nine-unit sides can be assembled in over six billion ways. Furthermore, Technic models must often support mechanical functions (like rotating joints) and maintain structural integrity through complex interlocking mechanisms rather than simple friction. The authors aim to bridge the gap between a user's high-level creative intent (a sketch) and the intricate, low-level engineering required to make a Technic model work.

Methods

The authors decompose the problem into a two-stage optimization pipeline guided by a multi-objective function.

  1. Guiding Graph Construction: The input 3D sketch is converted into a "guiding graph" where nodes represent potential hole positions and edges represent one-unit lengths.
  2. Stage 1: Beam Orientation Estimation: Using Simulated Annealing, the system assigns a principal orientation (X, Y, or Z) to each node in the graph. The goal is to maximize the number of adjacent nodes with the same orientation to allow for long, continuous beams while respecting user-defined rotation axes for joints.
  3. Stage 2: Iterative Layout Refinement: This stage solves a "sketch cover" problem. The system starts with a random layout of beams and iteratively applies a layout modification operator. This operator removes beams around a random edge and replaces them with a new set of beams that better satisfy the objective function.
  4. Objective Function: The optimization balances three key terms:
  5. Faithfulness: How well the bricks follow the input sketch and respect symmetry.
  6. Simplicity: Minimizing the total number of beams and maximizing the use of simple pins (quantified by a "pin-head ratio").
  7. Structural Integrity: Minimizing collisions, reducing gaps between beams, and ensuring the model is "rigid" and "connectable."

Finally, the system includes a "working system" that performs balance and stress analysis and generates step-by-step assembly instructions.

Datasets

The paper does not use a traditional machine learning dataset. Instead, the authors evaluated their method on a diverse suite of 24 custom-designed test cases ranging from simple shapes (cubes, chairs) to complex models (an airplane, a 1,000+ brick space station, and a robotic claw).

They compared their results against:

  • Four algorithmic baselines: Random, Greedy, Beam Search, and Ant Colony Optimization.
  • Human Performance: A user study with 10 participants and a comparison against a professional LEGO Technic expert with over five years of experience.

Key Insights and Ideas

  • Multi-Tiling vs. Decomposition: The authors recognize that Technic design isn't just about filling a volume; it's a "multi-tiling" problem where beams must overlap and interlock across different layers to create strength.
  • Decoupling Orientation from Layout: By solving for beam orientation before picking specific bricks, the authors significantly prune the search space, making the optimization tractable for large models.
  • The Pin-Head Ratio ($\rho$): A clever metric introduced to quantify "simplicity." It measures the ratio of pin heads to total nodes in a connection mechanism. Higher ratios indicate simpler, more "standard" connections that are easier to build.
  • Layering as a First-Class Citizen: The system explicitly models the "layer number" of beams, allowing it to handle the complex 3D "sandwich" structures typical of high-end Technic sets.

Key Results

  • Efficiency: The system generated an airplane model (208 bricks) in just 36 seconds. In contrast, the human expert took 1.5 hours to design a comparable model using standard software.
  • Scalability: The method successfully handled the "Space Station" model, which contains 1,030 bricks, in under 4 minutes.
  • Quality: In 2D grid tests, the algorithm consistently found "gap-free" solutions with fewer beams than human participants, most of whom failed to find gap-free solutions as the grid size increased.
  • Physical Validation: The authors physically built 20 of the generated models (including a bicycle, a robot, and a bridge) to prove that the computational designs are assemblable and stable in the real world.

Limitations and Future Work

  • Global Rigidity: The current structural analysis is largely local. The authors note that a model could pass local connectivity tests but still be "floppy" or unstable at a global scale (e.g., a long arm sagging under gravity).
  • Non-Orthogonal Beams: The current system struggles with dense, non-orthogonal sketch lines where beams might intersect in ways the current library of connectors can't resolve.
  • Axle Coverage: While the system uses beams to cover most lines, the authors suggest that using axles as structural members (common in expert designs) is a promising direction for future optimization.
  • Complex Dynamics: While hinge rotations are supported, more advanced mechanical systems like gears, pulleys, and pistons are not yet integrated into the automatic design process.

Summary updated

BibTeX
@article{xu2019computational,
  author = {Hao Xu and Ka-Hei Hui and Chi-Wing Fu and Hao Zhang},
  title = {{Computational LEGO technic design}},
  journal = {ACM Trans. Graphics},
  year = {2019},
  doi = {10.1145/3355089.3371979},
}

Loading related content...

Figure