Fuzzy bear
An organic teddy bear whose arms, chin and ears hang out over the bed, so the overhang check has a lot to say.
Model by Robo, CC BY, from Thingiverse. Analyzed at 50,000 of its 60,004 faces, shown at 12,000.
The report
Pick an analysis to see it on the part. Drag to turn the part, hover over a face to read its value, and move the slider to change what counts as too thin or too steep.
Too thin OK
The numbers
What the API returned for this part: its geometry, the thickness and overhang results, and PrusaSlicer's estimate for the printer shown. The analyses ran on the full-resolution model; the viewer shows a lighter copy.
| Geometry | |
|---|---|
| Dimensions | 94.5 × 80.0 × 81.3 mm |
| Volume | 160,383 mm³ |
| Surface area | 29,384 mm² |
| Watertight | No |
| Manifold | No |
| Shells | 2 |
| Boundary edges | 0 |
| Non-manifold edges | 1 |
| Non-manifold vertices | 0 |
| Degenerate faces | 0 |
| Duplicate faces | 1 |
| Flipped faces | 0 |
| Intersecting faces | 16 |
| Thickness | |
| Faces thinner than 1.0 mm | 3.3% |
| Overhang | |
| Overhang at 45°, as uploaded | 4,746 mm² in 3,065 regions |
| Slice estimate | |
| Print time | 2 h 55 min |
| Filament | 54.9 g (18.4 m) |
| Sliced | Oriented |
| Printer and profile | Original Prusa MK4S 0.4 nozzle · 0.20mm SPEED · Prusament PLA |
| Layer height | 0.20 mm |
The API calls
These calls produce the results above for a file of your own. Each analysis is a job: start it, then poll it until it's complete.
# The SDK isn't on PyPI yet. The quickstart has the same calls with requests
import os
from propermesh import ProperMeshClient, Units
client = ProperMeshClient(os.environ["PROPERMESH_ACCESS_KEY"], os.environ["PROPERMESH_SECRET_KEY"])
part_id = client.upload_part_file("fuzzy-bear.stl", Units.mm)
# Geometry runs when you upload: size, volume, watertightness and the defect counts
geometry = client.wait_for_part_geometry_analysis_to_complete(part_id).json()
print(geometry["is_watertight"], geometry["num_degenerate_faces"])
# Walls thinner than 1 mm, and overhangs steeper than 45 degrees
thickness = client.wait_for_thickness_analysis_job_to_complete(
client.start_thickness_analysis_job(part_id, threshold=1).json()["id"]).json()
overhang = client.wait_for_overhang_analysis_job_to_complete(
client.start_overhang_analysis_job(part_id, critical_angle=45).json()["id"]).json()
print(thickness["thin_surface_area"], overhang["overhang_surface_area"])
# The pose that needs the least support, and a mesh repaired for printing
orient = client.wait_for_optimal_orientation_job_to_complete(client.start_optimal_orientation_job(part_id).json()["id"]).json()
repair = client.wait_for_repair_job_to_complete(client.start_repair_job(part_id).json()["id"]).json()
print(orient["transform"], repair["repaired_method"])
# Print time and filament, sliced with a printer profile you saved
profile = client.create_profile_from_preset("prusa-mk4s-0.4")
sliced = client.wait_for_slice_job_to_complete(client.start_slice_job(part_id, profile["id"]).json()["id"]).json()
print(sliced["print_time_seconds"], sliced["filament_weight_g"])export PROPERMESH_ACCESS_KEY="your access key"
export PROPERMESH_SECRET_KEY="your secret key"
PART_ID=$(curl -s https://propermesh.com/api/v0.1/parts \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-F "file=@fuzzy-bear.stl" -F "units=mm" | jq -r .id)
# Each analysis is a job: start it, then run the second call again until "status" is "complete"
JOB_ID=$(curl -s https://propermesh.com/api/v0.1/thickness/$PART_ID/start \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{"threshold": 1}' | jq -r .id)
curl -s https://propermesh.com/api/v0.1/thickness/$JOB_ID \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" | jq '{status, thin_surface_area}'
# Overhangs, the best orientation and a repaired mesh work the same way
curl -s https://propermesh.com/api/v0.1/overhang/$PART_ID/start \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{"critical_angle": 45}'
curl -s https://propermesh.com/api/v0.1/orient/$PART_ID/start \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{}'
curl -s https://propermesh.com/api/v0.1/repair/$PART_ID/start \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{}'
# Slice it with a profile saved from a built-in printer
PROFILE_ID=$(curl -s https://propermesh.com/api/v0.1/slice/profiles/from-preset \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{"printer": "prusa-mk4s-0.4"}' | jq -r .id)
curl -s https://propermesh.com/api/v0.1/slice/$PART_ID/start \
-H "x-access-key: $PROPERMESH_ACCESS_KEY" \
-H "x-secret-access-key: $PROPERMESH_SECRET_KEY" \
-H "Content-Type: application/json" -d '{"profile_id": "'$PROFILE_ID'"}'