cao_visite_plan
WHEN the building should be SEEN in motion rather than read on a flat plan — you direct the shot. IMPORTANT: call cao_verifier FIRST and fix every severite=critique (intégrité clos/couvert + escalier/lucarne). This endpoint REFUSES with HTTP 400 construction_critique if the scene still has critical construction defects — the 4K visit would show them. Apply fixes via POST /api/v1/cao/integrite {appliquer:true, revalider:true} then retry. DIRECT the 4K cinematic visit of a CAO scene: choose the LENS (focal length in mm, full-frame equivalent) and the CAMERA PATH. Returns a shooting plan {plan:{objectif, cadence, plans[], chemin[]}, alertes[], resume} where chemin is the full waypoint list (position/vise in mm, CAO axes x=right y=depth z=height). Rooms are detected automatically (walls → flood fill → room centres → path through doorways), one interior walk per storey plus the stair climb. Rendering is done by ONE engine, the browser GPU: paste plan into CAO editor → « Visite 4K » → « Plan de caméra piloté », or call window.CAD_startCinematicTour({plan}). To adjust: resend with a modified objectif/cadence, or send back an edited chemin (it is then used verbatim and checked). Lens catalogue (free, no key): GET /api/v1/cao/visite/objectifs. Requires API key. REST: POST /api/v1/cao/visite/plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| mode | No | 'deco' = furnished as modelled; 'nu' = bare shell (plaster). | deco |
| murs | No | Walls: plan segments extruded vertically | |
| plan | No | 2D reference lines | |
| boites | No | Boxes (furniture, volumes): center x,y + dims l,p,h (mm) | |
| chemin | No | OPTIONAL: your own waypoints — replaces the computed path. | |
| cadence | No | Pacing. Interior is a WALK: above ~1600 mm/s the video is unwatchable. | |
| cercles | No | ||
| duree_s | No | Video length, 8–900 s (default 60). A real estate walkthrough runs 480–600 s; the path is ENRICHED with extra exterior revolutions to fill it with movement rather than slowed down. | |
| reseaux | No | Plumbing pipe runs (EF/EC/EU/EV/EP/chauffage) — used only by cao_pdf (technical plan + linear-meter quantities per type). | |
| objectif | No | Lens, full-frame equivalent mm. 20 = interior standard, 35 = exterior, 50 = closing shot. Below 16 mm the image goes fisheye. | |
| toitures | No | Roofs — used only by cao_pdf. WITHOUT this field: a flat roof is auto-generated over the footprint of ALL walls (legacy default). WITH it: compose freely — each entry can target a subset of walls (via `murs`), letting you build an L-shaped building's roof, or add a dormer on top of a main roof. | |
| plomberie | No | Sanitary fixtures (sink, WC, shower…) — used only by cao_pdf. Same positioning as electricite. | |
| decoration | No | Paint/finish per wall — used only by cao_pdf. Colors the elevations (exterior face) and the axonometric view (face auto-detected by orientation relative to the building's centroid). | |
| ouvertures | No | Doors/windows embedded in a wall — used only by cao_pdf (elevations + axonometric view), no effect on dxf/metres. | |
| resolution | No | 4k | |
| electricite | No | Electrical symbols (outlets, switches, lights…) — used only by cao_pdf (dedicated technical plan + quantities), no effect on dxf/metres/render. Position: attached to a wall (`mur`+`position`, like ouvertures) or free (`x`,`y`). |