HF RL Explorer

The X3D serializer currently does not support 2D geometry types. Calling serialize() with a 2D shape—such as…

The X3D serializer currently does not support 2D geometry types. Calling serialize() with a 2D shape—such as…: a task in LegoFlow-SWE (Harbor dataset). Steps to reproduce 1. Create a 2D geometry or path: const shape = primitives.rectangle({size: 10, 10 }) 2. Apply a color: const colored =…

The task

**Steps to reproduce** 1. Create a 2D geometry or path: `const shape = primitives.rectangle({size: [10, 10]})` 2. Apply a color: `const colored = colors.colorize([1, 0, 0], shape)` 3. Serialize: `const data = serialize({}, colored)` 4. Examine the output XML—no `Polyline2D`, no `lineSegments`, no color information.

Part of Lego-X/LegoFlow-SWE.