STL Info Insight

FREEMIUM
By WatchMyDC | Updated 한 달 전 | Tools
Popularity

6.7 / 10

Latency

12,464ms

Service Level

100%

Health Check

N/A

README

STL Volume Calculator API

Overview

Welcome to the STL Volume Calculator API, a powerful tool for extracting essential information from your 3D models. Whether you’re a 3D printing enthusiast, a professional, or an educator, this API provides valuable insights to optimize your 3D printing projects.

Key Features

The STL Volume Calculator API offers a range of features to enhance your 3D printing experience:

  • Total Volume, Air Volume, and Final Volume: Easily obtain crucial volume measurements for your 3D models, allowing you to fine-tune your designs and ensure they meet your specifications.

  • Estimated Print Time: Get an accurate estimate of the time it will take to bring your creations to life, helping you plan and manage your 3D printing projects effectively.

  • Estimated Weight Based on Material: Our API supports a variety of materials, including PLA, ABS, ASA, PETG, PA6, PA12, PC, and PPS. It provides estimated weight calculations based on the selected material, taking into account the density of each material type.

Supported Materials

The following materials are supported by the API, each with its estimated density in g/cm³:

  • “PLA”: 1.25
  • “ABS”: 1.04
  • “ASA”: 1.24
  • “PETG”: 1.23
  • “PA6”: 1.15
  • “PA12”: 1.01
  • “PC”: 1.20
  • “PPS”: 1.80

These material options enable you to make precise calculations for your 3D printing projects based on the material you choose.

API Usage

The STL Volume Calculator API is easy to integrate into your 3D printing workflow. Follow the instructions below to access valuable insights about your 3D models:

Making API Requests

Use the following code (Python as example) as a reference for making API requests:

import requests

url = "https://stl-info-insight.p.rapidapi.com/3dslicer-02/calculate_volume"

files = { "stl_file": "open('3dfile.stl', 'rb')" }
payload = { "material_type": "ABS" }
headers = {
	"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
	"X-RapidAPI-Host": "stl-info-insight.p.rapidapi.com"
}

response = requests.post(url, data=payload, files=files, headers=headers)

print(response.json())

API Usage

To leverage the capabilities of the STL Volume Calculator API, follow these steps to calculate essential information about your 3D models.

Prerequisites

  • You’ll need a RapidAPI key, which can be obtained from RapidAPI.

Making a Request

To make a request to the API, you can use the following code as an example. This example demonstrates how to calculate volume, weight, and print time for a specific STL file with the material type set to “ABS.”

# Import the necessary libraries
import requests

url = "https://stl-info-insight.p.rapidapi.com/3dslicer-02/calculate_volume"

# Replace '3dfile.stl' with the path to your STL file
files = { "stl_file": open('3dfile.stl', 'rb') }

# Specify the material type (e.g., 'ABS')
payload = { "material_type": "ABS" }

# Set the required headers with your RapidAPI key and host
headers = {
    "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
    "X-RapidAPI-Host": "stl-info-insight.p.rapidapi.com"
}

Send the POST request

response = requests.post(url, data=payload, files=files, headers=headers)

Print the JSON response

print(response.json())

Contact Us

Your feedback is important to us. If you’d like to add more materials to our supported list or suggest additional features, please don’t hesitate to contact us at contact@3dslicegenius.com. We’re here to support your 3D printing needs and continuously improve our services.

Enjoy exploring the possibilities of the STL Volume Calculator API and enhance your 3D printing experience!

Followers: 1
Resources:
Product Website
API Creator:
Rapid account: Watch My DC
WatchMyDC
watchmydc
Log In to Rate API
Rating: 1 - Votes: 1