GithubHelp home page GithubHelp logo

limska / volumesource Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 18.05 MB

A simple web service which given an STL will produce a pricing quote for a 3D printed part

License: MIT License

CMake 1.87% Batchfile 2.10% C++ 95.10% C 0.15% HTML 0.24% Shell 0.55%

volumesource's Introduction

volumesource

A simple web service which given an STL will produce a pricing quote for a 3D printed part

Assumptions

  1. The STL surface is not checked for closeness

  2. For speed the STL vertices are duplicated, i.e.

  3. The web server is based on Boost asio http server example

  4. A 15% margin has been added to the volume at the end.

  5. The web server returns just plain text for now. Needs to formated to JSON in future

  6. The STL files need to be uploaded to volumesource\tests

  7. Server port is hard coded to http://178.79.141.54:8080

Building

  • The project is only C++11

  • It depends on Boost 1.67.0 and cmake 1.11

  • It was built with cross platform in mind. It is currently built on Windows with Visual Studio 2017, but should work on Linux with minor changes.

  • To build on windows look at bin/build.bat and adapt it for your setup

  • Download boost binaries boost_1_67_0-msvc-14.1-64.exe at same level as volumesource in boost\1.67.0.

  • To build

cd volumesource
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT="<path to boost installation>\boost\1.67.0\boost_1_67_0" 
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat"
cd path\to\build
devenv volumesource.sln /build

Running

cd volumesource
build\Release\volumesource.exe tests\block100.stl

Open browser and enter:

volumesource's People

Contributors

limska avatar

Stargazers

Damian Sanchez avatar Yan Molinos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.