Skip to content

thehimel/django-stl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-stl

An app to read STL files.

Terminology

STL (file format)

According to Wikipedia, STL is a file format native to the stereolithography CAD software created by 3D Systems. More information can be found here.

Features

  • Upload an STL file to the server.
  • Server reads the file.
  • Server can extract the following data:
    • bounding box with dimensions:
      • length, width, height for square
      • length and diameter for round
    • volume
    • surface area

Python

  • Minimum Python interpreter version is 3.9.

Libraries

  • Django for making the web application.
  • numpy-stl for reading the STL file.
  • pathlib to handle file path.
  • pytest for testing.

Getting Started

  • Clone the repository.
  • Create a virtual environment.
    • Windows: python -m venv venv
    • Linux: python3.9 -m venv venv
  • Activate the virtual environment.
    • Windows: venv\Scripts\activate
    • Linux: source venv/bin/activate
  • Install dependencies with pip install -r requirements.txt
  • Run migration with python src/manage.py migrate

Running the Server

Usage

  • Select a sphere type and upload an STL file.

Testing

  • Run tests with pytest src

Author

  • Himel Das

Acknowledgement

Citation

Sources

About

An app to read STL files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published