demo · v147 · WebXR · AR
Plane Mesh Generator
Paste XRPlane.polygon vertices (x, z pairs) or pick a preset room layout. The tool triangulates the polygon and renders it as a filled mesh, wireframe, or extruded walls — and exports as GLTF JSON.
XRPlane.polygon vertices
0 verts
Presets:
Triangles: —
Vertices: —
Area: —
Perimeter: —
mesh representations
- Triangulated mesh
- Fan triangulation from the centroid. Sufficient for convex polygons; for concave shapes (L-room) uses ear-clipping to ensure all triangles are inside the polygon.
- Wireframe
- Outlines each triangle edge. Useful for debugging plane detection accuracy and polygon vertex fidelity.
- Extruded walls
- Extrudes each edge of the polygon upward to produce walls — the perspective-projected view shows the 3D box a floor plane encloses.
- Convex hull
- Graham scan convex hull of the vertices. Useful for physics colliders when exact concave geometry is too expensive.
see also
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗