The LScan project is a standalone piece of software that will be used to convert 3D STL files of Lego parts to a valid LDraw parts definition file. It is written in Python.
- This repository contains the 2018-2019 capstone team project for computer science with professor Bart Massey.
- Find the documentation here: https://bgoldbeck.github.io/lscan/docs/index.html
Before setting up this project, download latest version of Python3
-
Mac OS
$ brew install python3
(Note: If your Mac does not have
brew
visit https://brew.sh/ to install HomeBrew) -
Windows OS
- Visit https://www.python.org/downloads/ to download latest version of Python3
- Download latest Git Bash from https://git-scm.com/downloads
Follow the following steps to setup LScan
We recommend PyCharm for an IDE for this project. If you use pycharm you can skip step 2 and step 3. You can use PyCharm's settings to setup the environment.
-
Open PyCharm and load LScan project
-
Add Python interpreter.
-
Follow these steps to install dependencies.
-
Right click
src/lscan.py
and clickRun
to test the environment setup. -
Development environment is complete once LScan runs without any issues.
Follow these steps if you are not using PyCharm.
Open terminal and follow these steps.
-
From the terminal clone LScan repo
$ git clone https://github.com/bgoldbeck/lscan.git
-
Change directory to lscan
$ cd lscan
-
Install dependencies
$ pip install -r requirements.txt
Open Git Bash and follow these steps.
-
Clone LScan repo
$ git clone https://github.com/bgoldbeck/lscan.git
-
Change directory to lscan
$ cd lscan
-
Install dependencies
$ pip install -r requirements.txt
Follow these steps to convert a valid STL model files to LDraw format.
- Click
Browse Input
to choose a STL file. - Click
Browse Output
to choose an output name. - Enter your name in
Set Author
text box. - Enter a license text in
Set License
text box. - Click
Convert to LDraw
button to start conversion. - Click
Save Conversion
button to save the LDraw file.
The converted file is in LDraw .dat
format. To view the LDraw model, visit https://www.ldraw.org/documentation/help/getting-started.html
and download a CAD software for your operating system. Click LDView to download a popular LDraw model viewer.
https://github.com/bgoldbeck/lscan/issues
LScan is licensed under MIT License. Read LICENSE for license details.
Brandon Goldbeck: [email protected]
Anthony Namba: [email protected]
Brandon Le: [email protected]
Ann Peake: [email protected]
Sohan Tamang: [email protected]
Theron Anderson: [email protected]
An Huynh: [email protected]
Copyright (C) 2018 "Brandon Goldbeck", "Anthony Namba", "Brandon Le", "Ann Peake", "Sohan Tamang", "Theron Anderson", "An Huynh"