SlideShare a Scribd company logo
1 of 17
Download to read offline
BrickFest 2005 is a production of AMC
Productions LLC, all rights reserved.
Page 1
Washington, DC 2005
Automated Brick Layout
BrickFest 2005
David V. Winkler
Sunday 8/14/2005
10:30am-11:30am
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 2
Washington, DC 2005
Computer use with Legos
• Visualization
– LDraw
– MLCad
• Mosaic generation
– GIMP
– Pixelego
– Lego Shop At Home
– Lugnet
• Sculplture design
– Legoland
• Sculpture layout
– ?
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 3
Washington, DC 2005
Automated Brick Layout
• Model design
– Use of free software
• Pov-ray
• Simple scripts to produce model outline
• Brick Layout
– Software for taking outline and producing brick
layout
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 4
Washington, DC 2005
Models into outlines
• Use modeling package to produce 3d object
– Or grab one from the internet
– Normally triangle mesh
• Turn this model into a pov-ray CSG object
– Just add exterior vector
• Intersect model with two planes
– Produce thin slice of model
• Animate planes moving vertically through model
– Each frame is a Lego layer
– Shrink frame resolution to desired Lego size
• e.g. 48x48 for gray baseplate
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 5
Washington, DC 2005
Model
•Model
courtesy of the
Stanford
Graphics
Laboratory
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 6
Washington, DC 2005
Model from above
(orthographic projection)
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 7
Washington, DC 2005
Frames of model
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 8
Washington, DC 2005
Shrink to correct size
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 9
Washington, DC 2005
Automated Brick Layout
• General problem of filling area with a cost function is NP-
complete
– Like many problems special cases make it solvable
• Small pieces
– We will make some approximations
• Strategy
– Try lots of possibilities
– Apply a cost function
• Piece price
• Piece stability – how much that piece holds the model together
– Try to keep 25% or less of piece over or under empty space
– Better to bridge gap than cantilever
– Better to cover more different pieces than match below layer
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 10
Washington, DC 2005
Automated Brick Layout
• How to try lots of possibilities
• Number each square to be filled
• At every step we try all possible pieces
– At every step we will fill in lowest numbered unfilled square
• Squares may not be filled in order
• When all squares are filled we will have tried all possible fillings
– We merge together states that fill the same squares
• Use cost function to select a winner
– Perform search in order of increasing number of filled squares
• This produces a lattice (directed acyclic graph with source
and sink nodes)
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 11
Washington, DC 2005
Lattice of all fillings of 3x3 region
• Every path
from top to
bottom of this
diagram is a
unique filling.
• Only finished
fillings of sorted
piece order will
appear
– That’s why
center filled
and center
empty don’t
appear in the
diagram
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 12
Washington, DC 2005
Making the lattice manageable
• Lossy techniques that work
– Discard some high cost states
• This is called a Beam Search
• Recovering from lossy techniques
– Recursive overlapping search (10x speed
improvement for same quality)
• Fill region quickly, but poorly
• Remove legos from top half and perform high quality filling
• Remove legos from bottom half and perform high quality filling
• Remove legos from middle half and perform high quality filling
• Repeat until pieces stop changing
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 13
Washington, DC 2005
Results
• Large structurally sound
models can be quickly
constructed
• 3d meshes courtesy of the
Stanford Graphics Laboratory
and Cyberware, Inc.
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 14
Washington, DC 2005
Making the lattice manageable
• Lossless techniques that work
– Generate lattice on the fly – discard nodes deep in the
past
• Can discard any nodes deeper in the past than the area of the
largest piece
– Size of lattice is exponential in cross-sectional distance
• Making the models hollow greatly reduces cross-sectional
distance
• Different numbering of squares to be filled
– Remove common pieces to common list
– Bit packing
• Especially the list of pieces for a state
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 15
Washington, DC 2005
Offtopic: Instructions
• Hardest part of
constructing model is
following the instructions.
• Good instruction features:
– Thick dark line surrounding
each piece
– Shadow of layer beneath
• Allowing alignment
• Check of previous layer
• What I did:
– Parse ldr and generate
postscript
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 16
Washington, DC 2005
Commercialism
This technology is available for license from
Microsoft™.
Please contact JoyMu@microsoft.com with
licencing questions.
BrickFest 2005 is a production of
AMH Events LLC, all rights reserved.
Page 17
Washington, DC 2005
Thank you
Any Questions?
Please feel free to follow up by email:
happyfrosh@hotmail.com

More Related Content

Viewers also liked

CONCRETE MIX DESIGN AS PER IS 10262:2009
 CONCRETE MIX DESIGN AS PER IS 10262:2009  CONCRETE MIX DESIGN AS PER IS 10262:2009
CONCRETE MIX DESIGN AS PER IS 10262:2009 Avinash Kumar Gupta
 
Light Weight Block (CLC) Manufacturing Plant
Light Weight Block (CLC) Manufacturing PlantLight Weight Block (CLC) Manufacturing Plant
Light Weight Block (CLC) Manufacturing Plantgubbiseo
 
Computer Security and Intrusion Detection(IDS/IPS)
Computer Security and Intrusion Detection(IDS/IPS)Computer Security and Intrusion Detection(IDS/IPS)
Computer Security and Intrusion Detection(IDS/IPS)LJ PROJECTS
 
Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...
Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...
Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...Ajjay Kumar Gupta
 
General layout of steel structures
General layout of steel structuresGeneral layout of steel structures
General layout of steel structuresMaha Hassan
 
Ppt ON ADMIXTURES
Ppt ON ADMIXTURESPpt ON ADMIXTURES
Ppt ON ADMIXTURESNeha Bansal
 
flooring and its types
flooring and its typesflooring and its types
flooring and its typesLakshay Sharma
 
Construction site safety
Construction site safetyConstruction site safety
Construction site safetyDebajit Roy
 
Team work presentation
Team work presentationTeam work presentation
Team work presentationNasrin Tayyab
 
Cellular light weight concrete block CLC technology
Cellular light weight concrete block CLC technologyCellular light weight concrete block CLC technology
Cellular light weight concrete block CLC technologyNILESH AJMERA
 
Teamwork presentation
Teamwork presentation Teamwork presentation
Teamwork presentation ct231
 

Viewers also liked (17)

Apex Building Solutions
Apex Building SolutionsApex Building Solutions
Apex Building Solutions
 
CONCRETE MIX DESIGN AS PER IS 10262:2009
 CONCRETE MIX DESIGN AS PER IS 10262:2009  CONCRETE MIX DESIGN AS PER IS 10262:2009
CONCRETE MIX DESIGN AS PER IS 10262:2009
 
Light Weight Block (CLC) Manufacturing Plant
Light Weight Block (CLC) Manufacturing PlantLight Weight Block (CLC) Manufacturing Plant
Light Weight Block (CLC) Manufacturing Plant
 
Computer Security and Intrusion Detection(IDS/IPS)
Computer Security and Intrusion Detection(IDS/IPS)Computer Security and Intrusion Detection(IDS/IPS)
Computer Security and Intrusion Detection(IDS/IPS)
 
Industrial flooring
Industrial flooringIndustrial flooring
Industrial flooring
 
04 masonry
04 masonry04 masonry
04 masonry
 
Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...
Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...
Cellular Lightweight Concrete Blocks, CLC Blocks Manufacturing Plant, Foamed ...
 
General layout of steel structures
General layout of steel structuresGeneral layout of steel structures
General layout of steel structures
 
Ppt ON ADMIXTURES
Ppt ON ADMIXTURESPpt ON ADMIXTURES
Ppt ON ADMIXTURES
 
Water proofing in buildings
Water proofing in buildingsWater proofing in buildings
Water proofing in buildings
 
flooring and its types
flooring and its typesflooring and its types
flooring and its types
 
Construction site safety
Construction site safetyConstruction site safety
Construction site safety
 
Team work presentation
Team work presentationTeam work presentation
Team work presentation
 
Flooring
FlooringFlooring
Flooring
 
Powders
PowdersPowders
Powders
 
Cellular light weight concrete block CLC technology
Cellular light weight concrete block CLC technologyCellular light weight concrete block CLC technology
Cellular light weight concrete block CLC technology
 
Teamwork presentation
Teamwork presentation Teamwork presentation
Teamwork presentation
 

Similar to automatedbricklayout[1]

Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)
Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)
Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)Aswin John
 
SolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBA
SolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBASolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBA
SolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBARazorleaf Corporation
 
Cellular Manufacturing
Cellular Manufacturing Cellular Manufacturing
Cellular Manufacturing sgrsoni45
 
Z mass pitch deck
Z mass pitch deckZ mass pitch deck
Z mass pitch deckScottLong50
 
Rapid prototyping
Rapid prototypingRapid prototyping
Rapid prototypingAjaa Tahir
 
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...DataStax
 
GC Tuning Confessions Of A Performance Engineer
GC Tuning Confessions Of A Performance EngineerGC Tuning Confessions Of A Performance Engineer
GC Tuning Confessions Of A Performance EngineerMonica Beckwith
 
Concrete homes intl_english_20130130(1)
Concrete homes intl_english_20130130(1)Concrete homes intl_english_20130130(1)
Concrete homes intl_english_20130130(1)TSC Global
 
1.6 _Important element required to complete a building
1.6  _Important element required to complete a building1.6  _Important element required to complete a building
1.6 _Important element required to complete a buildingTeow Beng Hur
 
Trusted BIM: Accurate As-Builts for Project Coordination
Trusted BIM: Accurate As-Builts for Project CoordinationTrusted BIM: Accurate As-Builts for Project Coordination
Trusted BIM: Accurate As-Builts for Project CoordinationClearEdge3D Inc
 
Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...
Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...
Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...Altair
 
Rapid Prototyping_April18_2022.ppt
Rapid Prototyping_April18_2022.pptRapid Prototyping_April18_2022.ppt
Rapid Prototyping_April18_2022.pptKPShrestha
 
Internet of Things, TYBSC IT, Semester 5, Unit V
Internet of Things, TYBSC IT, Semester 5, Unit VInternet of Things, TYBSC IT, Semester 5, Unit V
Internet of Things, TYBSC IT, Semester 5, Unit VArti Parab Academics
 
Addressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization ProblemsAddressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization Problemsoptimizatiodirectdirect
 
SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing.
SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing. SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing.
SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing. SIMUL8 Corporation
 
Harpster, J. - Open data on buildings with satellite imagery processing
Harpster, J. - Open data on buildings with satellite imagery processingHarpster, J. - Open data on buildings with satellite imagery processing
Harpster, J. - Open data on buildings with satellite imagery processingOECDregions
 
Glass in the Making (v3) Valuation and Assessment
Glass in the Making (v3) Valuation and AssessmentGlass in the Making (v3) Valuation and Assessment
Glass in the Making (v3) Valuation and AssessmentBrij Consulting, LLC
 

Similar to automatedbricklayout[1] (20)

Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)
Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)
Developing Breakout Models in FEMAP (Includes Tutorial Walk-throughs)
 
Portfolio-PDF
Portfolio-PDFPortfolio-PDF
Portfolio-PDF
 
SolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBA
SolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBASolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBA
SolidWorks Design Automation Using the SolidWorks API, Microsoft Excel and VBA
 
Cellular Manufacturing
Cellular Manufacturing Cellular Manufacturing
Cellular Manufacturing
 
Z mass pitch deck
Z mass pitch deckZ mass pitch deck
Z mass pitch deck
 
Rapid prototyping
Rapid prototypingRapid prototyping
Rapid prototyping
 
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
Building Highly Available Apps on Cassandra (Robbie Strickland, Weather Compa...
 
GC Tuning Confessions Of A Performance Engineer
GC Tuning Confessions Of A Performance EngineerGC Tuning Confessions Of A Performance Engineer
GC Tuning Confessions Of A Performance Engineer
 
Concrete homes intl_english_20130130(1)
Concrete homes intl_english_20130130(1)Concrete homes intl_english_20130130(1)
Concrete homes intl_english_20130130(1)
 
1.6 _Important element required to complete a building
1.6  _Important element required to complete a building1.6  _Important element required to complete a building
1.6 _Important element required to complete a building
 
1AMankowski
1AMankowski1AMankowski
1AMankowski
 
Trusted BIM: Accurate As-Builts for Project Coordination
Trusted BIM: Accurate As-Builts for Project CoordinationTrusted BIM: Accurate As-Builts for Project Coordination
Trusted BIM: Accurate As-Builts for Project Coordination
 
Additively Manufactured Blade Mold Demonstration Project
Additively Manufactured Blade Mold Demonstration ProjectAdditively Manufactured Blade Mold Demonstration Project
Additively Manufactured Blade Mold Demonstration Project
 
Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...
Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...
Leveraging Geometric Shape Complexity, in Optimal Design for Additive Manufac...
 
Rapid Prototyping_April18_2022.ppt
Rapid Prototyping_April18_2022.pptRapid Prototyping_April18_2022.ppt
Rapid Prototyping_April18_2022.ppt
 
Internet of Things, TYBSC IT, Semester 5, Unit V
Internet of Things, TYBSC IT, Semester 5, Unit VInternet of Things, TYBSC IT, Semester 5, Unit V
Internet of Things, TYBSC IT, Semester 5, Unit V
 
Addressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization ProblemsAddressing Uncertainty How to Model and Solve Energy Optimization Problems
Addressing Uncertainty How to Model and Solve Energy Optimization Problems
 
SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing.
SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing. SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing.
SIMUL8 User Group - Visual8 Case Study - Plywood Manufacturing.
 
Harpster, J. - Open data on buildings with satellite imagery processing
Harpster, J. - Open data on buildings with satellite imagery processingHarpster, J. - Open data on buildings with satellite imagery processing
Harpster, J. - Open data on buildings with satellite imagery processing
 
Glass in the Making (v3) Valuation and Assessment
Glass in the Making (v3) Valuation and AssessmentGlass in the Making (v3) Valuation and Assessment
Glass in the Making (v3) Valuation and Assessment
 

automatedbricklayout[1]

  • 1. BrickFest 2005 is a production of AMC Productions LLC, all rights reserved. Page 1 Washington, DC 2005 Automated Brick Layout BrickFest 2005 David V. Winkler Sunday 8/14/2005 10:30am-11:30am
  • 2. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 2 Washington, DC 2005 Computer use with Legos • Visualization – LDraw – MLCad • Mosaic generation – GIMP – Pixelego – Lego Shop At Home – Lugnet • Sculplture design – Legoland • Sculpture layout – ?
  • 3. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 3 Washington, DC 2005 Automated Brick Layout • Model design – Use of free software • Pov-ray • Simple scripts to produce model outline • Brick Layout – Software for taking outline and producing brick layout
  • 4. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 4 Washington, DC 2005 Models into outlines • Use modeling package to produce 3d object – Or grab one from the internet – Normally triangle mesh • Turn this model into a pov-ray CSG object – Just add exterior vector • Intersect model with two planes – Produce thin slice of model • Animate planes moving vertically through model – Each frame is a Lego layer – Shrink frame resolution to desired Lego size • e.g. 48x48 for gray baseplate
  • 5. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 5 Washington, DC 2005 Model •Model courtesy of the Stanford Graphics Laboratory
  • 6. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 6 Washington, DC 2005 Model from above (orthographic projection)
  • 7. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 7 Washington, DC 2005 Frames of model
  • 8. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 8 Washington, DC 2005 Shrink to correct size
  • 9. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 9 Washington, DC 2005 Automated Brick Layout • General problem of filling area with a cost function is NP- complete – Like many problems special cases make it solvable • Small pieces – We will make some approximations • Strategy – Try lots of possibilities – Apply a cost function • Piece price • Piece stability – how much that piece holds the model together – Try to keep 25% or less of piece over or under empty space – Better to bridge gap than cantilever – Better to cover more different pieces than match below layer
  • 10. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 10 Washington, DC 2005 Automated Brick Layout • How to try lots of possibilities • Number each square to be filled • At every step we try all possible pieces – At every step we will fill in lowest numbered unfilled square • Squares may not be filled in order • When all squares are filled we will have tried all possible fillings – We merge together states that fill the same squares • Use cost function to select a winner – Perform search in order of increasing number of filled squares • This produces a lattice (directed acyclic graph with source and sink nodes)
  • 11. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 11 Washington, DC 2005 Lattice of all fillings of 3x3 region • Every path from top to bottom of this diagram is a unique filling. • Only finished fillings of sorted piece order will appear – That’s why center filled and center empty don’t appear in the diagram
  • 12. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 12 Washington, DC 2005 Making the lattice manageable • Lossy techniques that work – Discard some high cost states • This is called a Beam Search • Recovering from lossy techniques – Recursive overlapping search (10x speed improvement for same quality) • Fill region quickly, but poorly • Remove legos from top half and perform high quality filling • Remove legos from bottom half and perform high quality filling • Remove legos from middle half and perform high quality filling • Repeat until pieces stop changing
  • 13. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 13 Washington, DC 2005 Results • Large structurally sound models can be quickly constructed • 3d meshes courtesy of the Stanford Graphics Laboratory and Cyberware, Inc.
  • 14. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 14 Washington, DC 2005 Making the lattice manageable • Lossless techniques that work – Generate lattice on the fly – discard nodes deep in the past • Can discard any nodes deeper in the past than the area of the largest piece – Size of lattice is exponential in cross-sectional distance • Making the models hollow greatly reduces cross-sectional distance • Different numbering of squares to be filled – Remove common pieces to common list – Bit packing • Especially the list of pieces for a state
  • 15. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 15 Washington, DC 2005 Offtopic: Instructions • Hardest part of constructing model is following the instructions. • Good instruction features: – Thick dark line surrounding each piece – Shadow of layer beneath • Allowing alignment • Check of previous layer • What I did: – Parse ldr and generate postscript
  • 16. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 16 Washington, DC 2005 Commercialism This technology is available for license from Microsoft™. Please contact JoyMu@microsoft.com with licencing questions.
  • 17. BrickFest 2005 is a production of AMH Events LLC, all rights reserved. Page 17 Washington, DC 2005 Thank you Any Questions? Please feel free to follow up by email: happyfrosh@hotmail.com