Serialization?

When I was messing with the Ageia PhysX engine with OGRE's paging landscape scene manager, I implemented a system that first cooked patches of the terrain and saved the collision data to the harddrive. Then, at runtime, I could run around the massive 3d terrain and load in only the immediately surrounding physics data.

Does there exist / are there plans for a way to do this with Box2D (the serializing of the collision data to the disk part)?
Terrain meshes will be supported in 2.1. I have no plans to add serialization code because this tends to be platform/application specific.
Terrain meshes? 2D Terrain meshes? What do you mean, like a scorched earth type terrain? If Box2D could interact with an array of heights I'd be exhilerated.

I could of course just store the steps necessary to recreate a complex body and execute them like a script when necessary... I was just wondering if there's any streamlined set of data that could be directly fed in/out of Box2D.
The terrain mesh will be an arbitrary collection of line segments. So you can use that for a height-field or whatever you can draw with line segments.
Let's say I was going to design the first stage of Super Mario Bros. --complete with pipes and floating bricks and everything. Would that work with your terrain mesh code, or would the floating bricks have to be something else since they aren't connected to the rest of the world. What about deforming this terrain? Say I wanted Mario's fireflower power to burn through pipes, could I do that by adding/removing line segments?
The line segments don't have to be connected.

You'll be able to turn on and off individual line segments, but you won't be able to add/remove them. The line segments will be put into an optimized data structure that cannot be structurally modified at run time.

All the line segments must be static.
Uh, while we're on the subject of polling you about line meshes:
Are line meshes allowed to have open ends? Is there some optimization for ones that don't?
They can have open ends. You can have just a single line segment. Since the line segment mesh is static, everything will use CCD against it. That is why CCD must come first, otherwise we would get many tunneling issues.
i'm having trouble envisioning this line segment physics idea. would it be suitable for a side-view of a rope bridge? Could it (eventually) be used for cloth, perhaps?
The line segments are static.

Imagine a static 3D world made from a bunch of triangles. For example, think of a game like Halo.

Now imagine taking a 2D slice of that 3D world. Instead of triangles, you now have line segments.

Original thread: https://box2d.org/forum/viewtopic.php?t=326