model_urlstringwymagane
URL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI.
meshy/print/analyzeMeshy Analyze Printability checks a 3D model for watertightness, holes, non-manifold edges, degenerate faces and thin walls before printing.
Wypróbuj model
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Meshy Analyze Printability checks a 3D model for watertightness, holes, non-manifold edges, degenerate faces and thin walls before printing.
| Field | Type | Default | Notes |
|---|---|---|---|
model_url | string, required | — | URL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI. |
printer_type | fdm / sla / full_color | — | Printer that sets the minimum wall thickness. |
intended_print_height_mm | number 1–1000 | — | Planned print height in millimeters (GLB input). |
intended_print_longest_side_mm | number 1–1000 | — | Planned print size by its longest side in millimeters (exclusive with intended_print_height_mm). |
status: ok, warning or error.issue_count / error_count / warning_count: Issue counts.metrics: is_watertight, volume, holes, non_manifold_edges, degenerate_faces.thin_walls: Thin-wall check when a print size is given.Free (Meshy charges 0 credits).
Zacznij tworzyć
Prześlij ten model przez SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "meshy/print/analyze",
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
model_urlstringwymaganeURL of the 3D model (GLB, GLTF, FBX, OBJ or STL) as a public URL or data URI.
printer_typestringPrinter that sets the minimum wall thickness.
Możliwe wartości: "fdm", "sla", "full_color"
intended_print_height_mmnumberPlanned print height in millimeters (GLB input).
Minimum: 1
Maksimum: 1000
intended_print_longest_side_mmnumberPlanned print size by its longest side in millimeters (exclusive with intended_print_height_mm).
Minimum: 1
Maksimum: 1000
{
"model": "meshy/print/analyze",
"model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb"
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
Nie opublikowano jeszcze przykładowego output. Użyj Playground → Result → JSON po zakończonym uruchomieniu, aby sprawdzić odpowiedź.