Skip to content

bgoldbeck/lscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LScan

LScan Logo

Travis CI Build Status

What is this repository for?

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.

Dependencies

Setting up for Development

Before setting up this project, download latest version of Python3

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.

Setup Using PyCharm

  1. Open PyCharm and load LScan project

  2. Add Python interpreter.

    • Click File -> Settings -> Project Interpreter - in Windows OS
    • Click Pycharm-> Preferences -> Project Interpreter - in Mac OS
    • Click ⚙️ and click Add... Add interpreter
    • Add base interpreter and click OK Base interpreter
  3. Follow these steps to install dependencies.

    • Open requirements.txt
    • Click Install requirements to top right corner. Install Dependencies
    • A window with packages list appears. Select all and click Install Install
  4. Right click src/lscan.py and click Run to test the environment setup. Run

  5. Development environment is complete once LScan runs without any issues. LScan

Setup Without PyCharm

Follow these steps if you are not using PyCharm.

Mac OS

Open terminal and follow these steps.

  1. From the terminal clone LScan repo

    $ git clone https://github.com/bgoldbeck/lscan.git

  2. Change directory to lscan

    $ cd lscan

  3. Install dependencies

    $ pip install -r requirements.txt

Windows OS

Open Git Bash and follow these steps.

  1. Clone LScan repo

    $ git clone https://github.com/bgoldbeck/lscan.git

  2. Change directory to lscan

    $ cd lscan

  3. Install dependencies

    $ pip install -r requirements.txt

How to Use LScan

Follow these steps to convert a valid STL model files to LDraw format.

  1. Click Browse Input to choose a STL file.
  2. Click Browse Output to choose an output name.
  3. Enter your name in Set Author text box.
  4. Enter a license text in Set License text box.
  5. Click Convert to LDraw button to start conversion.
  6. Click Save Conversion button to save the LDraw file.

Using LScan

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.

Bug Tracker

https://github.com/bgoldbeck/lscan/issues

License

LScan is licensed under MIT License. Read LICENSE for license details.

Contact Us

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

Copyright (C) 2018 "Brandon Goldbeck", "Anthony Namba", "Brandon Le", "Ann Peake", "Sohan Tamang", "Theron Anderson", "An Huynh"

About

Fall 2018 - Winter 2019 PSU Capstone Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages