Fold LDraw patterns onto parts like applying stickers to LEGO models
PatternFolder is a Javascript library for projecting LDraw patterns, such as prints and stickers, onto a surface. The surface may represent one or more parts, such as a curved windscreen. Try it out by downloading the source from here, or use the tool directly at brickhub.org/i/apps/pf.htm. See this Youtube video for how to use it: https://www.youtube.com/watch?v=fwN1MLaxats
index.htm contains the full app with the following steps and functionalities:
-
Upload LDraw pattern either by URL, file, or by pasting the content into the text area.
-
Select the surface onto which the pattern should be projected.
-
Download the folded LDraw file.
PatternFolder.js is in the Public Domain.
The LDraw library is redistributable under CCAL version 2.0 : see CAreadme.txt.
Three.js and OrbitControls.js use the MIT license.