---
title: "Prepare a generated mesh for a sim scene | Spatial Compiler"
description: "Turn a generated model into a lighter mesh at real size with convex collision pieces your physics engine can use, over MCP or the API."
canonical: https://appliedmanifold.com/use-cases/sim-ready-mesh/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Use cases](https://appliedmanifold.com/use-cases/)
3.  Mesh for a sim scene

# Make generated props sim-ready

Simulation scenes need objects at true size with collision that matches their shape. Send a generated model and get it back in meters, lighter, with convex collision pieces your physics engine can use.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys&job=sim-scene) [Start with your agent](https://appliedmanifold.com/use-cases/sim-ready-mesh/#get-started)

![A generated robot after a hosted compile, 1.8 m tall, with its texture](/use-cases/jobs/sim-ready-mesh/before.webp)

![The same robot wrapped in 64 cyan convex collision pieces](/use-cases/jobs/sim-ready-mesh/after.webp)

Compiled robot, 1.8 m tall

64 collision pieces

-   **144,548**triangles in the generated robot
-   **60,578**triangles after one hosted compile
-   **1.8 m**tall, set to real-world size
-   **64**convex collision pieces

A TRELLIS robot compiled on the hosted API on 3 December 2026.

## True scale and working collision

Robotics and synthetic-data scenes need hundreds of props at the right size, and generated models arrive at an arbitrary scale with no collision.

A gripper that closes on a cup sized in made-up units learns the wrong thing, and a prop with no collider falls through the floor.

## What the terms mean

-   ### Real-world size

    The model's dimensions in meters.

    Sensors and grippers see objects at the size they would be in the room.

-   ### Collision pieces

    Simple convex shapes that wrap the model for physics.

    The physics engine computes contact on these instead of every triangle, which keeps the simulation fast.

-   ### Hidden triangles

    Faces buried inside the model that no camera sees.

    The compile removed 3,854 of them from the robot, so the scene renders less for the same image.

## How it works

1.  ### Send each model

    Your agent uploads GLB, FBX, OBJ, STL or PLY files up to 64 MB, one compile per model.

2.  ### Set size and collision

    The spec names the height in meters and asks for convex collision pieces. Your first 50 mesh Drafts are free with the $5 signup credit.

3.  ### Place it in the scene

    You get a GLB with colliders, a layout file with the corners of each piece and a report of the measured size and triangle count.

[See labeled simulation scenes](https://appliedmanifold.com/use-cases/)

## Questions

### Can I set the exact size of each model?

Yes. Your agent writes the size in meters into the spec, and the report returns the measured size so it can check the result.

### Which physics engines can use the collision pieces?

The pieces are convex shapes, which every major physics engine supports. The layout file lists the corners of each piece in meters, so your loader can build the shapes in any engine.

[All use cases](https://appliedmanifold.com/use-cases/)

## Use with your agent

Paste the prompt into Claude Code, Cursor or Codex. Your agent connects to Spatial Compiler and comes back with a GLB at real size with convex collision pieces and a report of its measured size and triangle count.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys&job=sim-scene) [Try it in the Playground →](https://console.appliedmanifold.com/playground?module=meshfx&item=washing_machine)

New accounts start with $5 of usage, and you see the price of each job before it runs.

Agent prompt

Connect the Spatial Compiler MCP server at https://spatialcompiler.dev/mcp if it isn't connected yet. Use meshfx to prepare my generated GLB for a physics simulation: set it to its real height in meters, remove hidden faces, make it lighter and add convex collision pieces. Run a Draft first. Your first 50 mesh Drafts are free with the $5 signup credit. Ask before running a final compile.

Or add the server yourself in Claude Code:

`claude mcp add --transport http spatial-compiler https://spatialcompiler.dev/mcp`

[Set it up in Cursor, Codex or another agent](https://appliedmanifold.com/docs/mcp/)

Once connected, your agent can call the `starter` tool for a ready fire Draft spec and the exact call that runs it. Your first 100 fire Drafts are free with the $5 signup credit.
