Skip to content

yeshan-jun/3mftostl

Repository files navigation

Preview

3mf to stl stl to 3mf

About 3MF to STL Converter

Online Tool Website 3MF to STL Converter,The core function of 3MF to STL Converter is to complete the conversion of 3MF files to STL files directly in the browser, eliminating the need for additional software installation. The entire conversion process boasts the following characteristics:

  • Fast and Efficient: Converts single or multiple files within seconds, with stable support for large-file conversions.
  • Secure and Private: All conversions are processed locally in the browser; files do not need to be uploaded to servers, ensuring user data security.
  • Completely Free: No registration required, no hidden charges, and no limits on conversion times or file sizes.
  • Multi-File Support: Allows simultaneous upload and conversion of multiple 3MF files, enhancing batch processing efficiency.

How to Usage

  1. Upload Files:Click on the "Click to upload 3MF files" upload area on the website's homepage and select one or more 3MF files to be converted.
  2. Automatic Conversion:Once the upload is complete, the tool will start the conversion automatically. A clear progress indicator will be displayed on the page to show the conversion status intuitively.
  3. Download Results:After the conversion is finished, click the download button corresponding to the file to obtain the converted STL file.

How to Deployment

You can choose from two methods: a simple Python web server for quick deployment or Nginx for a more robust, production-ready setup.


Method 1: Using Python's Built-in HTTP Server

  1. Clone the repository

    git clone https://github.com/huashengjieguo/3mftostl.git
  2. Navigate to the project directory Move into the directory that was just created.

    cd 3mftostl
  3. Run the server Execute the following command to start a server on port 80.

    python3 -m http.server 80

    Note: Using port 80 may require administrative or root privileges. If you encounter a permission error, try using a different port, such as 8000 (python3 -m http.server 8000).

Your website will be accessible at your server's IP address or http://localhost.


Method 2: Using Nginx

This method is recommended for production environments due to Nginx's high performance and advanced features.

  1. Clone the repository to a web directory

    git clone https://github.com/huashengjieguo/3mftostl.git
  2. Create an Nginx configuration file Create a new server block configuration file.

    sudo nano /etc/nginx/sites-available/your-site-name.conf
  3. Add the configuration content Paste the following configuration into the file. Replace your-site-name.com with your domain and your-site-name with the directory name from the previous step.

    server {
        listen 80;
        listen [::]:80;
        server_name your-site-name.com [www.your-site-name.com](https://github.com/huashengjieguo/3mftostl.git);
    
        root /var/www/your-site-name;
        index index.html index.htm;
    
        location / {
            try_files $uri $uri/ =404;
        }
    }
  4. Enable the configuration and restart Nginx Create a symbolic link to activate the configuration, test for errors, and restart the Nginx service.

    sudo ln -s /etc/nginx/sites-available/your-site-name.conf /etc/nginx/sites-enabled/
    sudo nginx -t
    sudo systemctl restart nginx

Your website is now deployed and will be live at your specified domain name.

About

Free, private, in‑browser 3MF ↔ STL converters and viewers. No uploads, no limits

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages