Sign inSign up

ipepe/stltostp-api

By ipepe

Updated about 6 years ago

HTTP wrapper around stltostp commandline tool

Image
0

2.4K

ipepe/stltostp-api repository overview

stltostp

Command line utility to convert stl files to STEP (ISO 10303-21) files. The translation is a direct triangle to triangle conversion with a tolerance based merging of edges. stltostp translates without depending on 3rd party tools such as OpenCascade or FreeCAD. Image of stltostp input_output

Usage

stltostp <stl_file> <step_file> [ tol <value> ] Image of stltostp usage

License

BSD

Windows Installer

stltostp-1.0.1-win64.msi

Linux building from source

apt-get update && apt-get install -y cmake build-essential git
git clone https://github.com/slugdev/stltostp.git
cd stltostp
mkdir build
cmake .
make

Docker

API

For Dockerfile there is a nodejs code that enables You to run this library as a http processing service. To use http API You should do a POST request to /api/process with multipart form and file field with name of input. Like:

  <form action="/api/process" method="post" enctype="multipart/form-data">
    Select STL file to upload:
    <input type="file" name="input" id="fileToUpload">
    <input type="submit" value="Upload" name="submit">
  </form>

It will respond with file or JSON object with error key and string value of that key that explains what went wrong when converting Your request.

docker command

docker run -p 8080:80 ipepe/stltostp-api

docker-compose.yml
version: '2'
services:
  server:
    image: ipepe/stltostp-api
    ports:
      - 8080:80

Tag summary

Content type

Image

Digest

Size

332 MB

Last updated

about 6 years ago

docker pull ipepe/stltostp-api