A house is a folder (My house.house/) with house.json at its heart: levels with their walls,
openings, rooms, stairs and furniture, then the roofs, materials and the rest. Lengths are metres,
angles degrees; x points east and y north. Every change is checked against this schema before it
is saved, and the same schema is in the repository.
The top of house.json. Fields marked * are required.
| Field |
Type |
Default |
|
cameras |
list of Camera |
[] |
|
facade |
text |
null |
Material of every outside wall face with no finish of its own (set_facade); unset: the exterior render |
ground_elevation |
number |
0.0 |
Terrain height; levels below it are basements |
levels * |
list of Level |
|
|
materials |
object |
|
|
meta |
Meta |
{"notes": [], "px_per_m": null, "source": null} |
|
name |
text |
"House" |
|
panels |
list of Panel |
[] |
|
parameters |
list of Parameter |
[] |
Sliders the user can drag (add_parameter) |
roofs |
list of Roof |
[] |
|
schema_version |
integer |
2 |
|
A named viewpoint, e.g. matching a photo of the real house.
| Field |
Type |
Default |
|
id * |
text |
|
|
lens_mm |
number |
24.0 |
Focal length on a 36 mm sensor (phone main camera ~ 26) |
position * |
[number, number, number] |
|
|
target * |
[number, number, number] |
|
|
How a dormer was made (add_dormer): kept on the dormer’s roof, so the dormer is rebuilt when its main roof changes and removed as one.
| Field |
Type |
Default |
|
cheek_material_id |
text |
null |
|
front * |
list of [number, number] |
|
Outside face of the front, left to right from outside |
front_height * |
number |
|
Top of the front above the level floor |
hole |
list of [number, number] |
[] |
The hole it cuts in the main roof |
kind |
shed | gable |
"shed" |
|
level_id * |
text |
|
|
on * |
text |
|
The main roof it sits in |
pitch_deg |
number |
null |
|
sill_height |
number |
null |
|
walls |
list of text |
[] |
Its front and cheek walls |
window_height |
number |
1.2 |
|
window_width |
number |
1.0 |
|
windows |
integer |
1 |
|
| Field |
Type |
Default |
|
asset |
text |
null |
Asset reference (e.g. polyhaven:<id>); None = placeholder box |
description * |
text |
|
Free text, e.g. ‘beautiful oak desk’ |
id * |
text |
|
|
kind |
box | desk | table | chair | bed | sofa | wardrobe | shelf | cabinet |
"box" |
Parametric shape built to size |
material |
text |
null |
|
position * |
[number, number, number] |
|
Centre of the footprint (x, y) and height above the floor (z) |
room_id |
text |
null |
|
rotation_deg |
number |
0.0 |
0 = front faces -y (south); 90 = front faces +x (east) |
secondary_material |
text |
null |
Upholstery, mattress, handles … |
size * |
[number, number, number] |
|
Bounding box w, d, h in metres |
source |
Provenance |
null |
Provenance of this element |
| Field |
Type |
Default |
|
elevation |
number |
0.0 |
|
floor_openings |
list of list of [number, number] |
[] |
Holes in this level’s floors (stair wells); also cut from the ceilings below |
furniture |
list of FurnitureItem |
[] |
|
id * |
text |
|
|
name |
text |
"" |
|
openings |
list of Opening |
[] |
|
rooms |
list of Room |
[] |
|
stairs |
list of Stair |
[] |
|
wall_height |
number |
2.7 |
|
walls |
list of Wall |
[] |
|
| Field |
Type |
Default |
|
base_color |
text |
"#ffffff" |
|
match_color |
true/false |
false |
Scale the texture so its average colour is base_color (keeps the scanned surface, takes the colour: plaster, render, lawn) |
metallic |
number |
0.0 |
|
mortar_color |
text |
"#b8b2a6" |
|
mortar_m |
number |
0.01 |
Joint width in m |
name |
text |
null |
|
pattern |
none | brick | tile | planks |
"none" |
Procedural pattern in world metres (no image files needed) |
pattern_size |
[number, number] |
[0.24, 0.0715] |
Unit width, height in m (brick 0.24 x 0.0715 = NF) |
roughness |
number |
0.5 |
|
secondary_color |
text |
null |
Second colour that units vary towards |
texture |
text |
null |
A scanned PBR material, ‘polyhaven:<id>’ or ‘ambientcg:<id>’ (search_materials finds them). base_color stays the flat colour (drawings, and the fallback while the texture is missing); tint multiplies the texture |
texture_scale_m |
number |
null |
Width in metres one repeat of the texture covers; None = its real size |
tint |
text |
"#ffffff" |
Multiplies the texture: #ffffff = as scanned |
transmission |
number |
0.0 |
1 = glass |
| Field |
Type |
Default |
|
notes |
list of text |
[] |
|
px_per_m |
number |
null |
Plan scale used during extraction |
source |
text |
null |
Where this model came from (pdf path, page, …) |
| Field |
Type |
Default |
|
frame_material |
text |
"frame_white" |
|
height * |
number |
|
|
hinge |
start | end |
"start" |
|
id * |
text |
|
|
leaf_material |
text |
"door_wood" |
|
offset * |
number |
|
Distance from wall start to the opening’s centre |
open_angle_deg |
number |
null |
Unset: 90, or 0 (shut) for doors wider than 2 m |
sill_height |
number |
0.0 |
0 for doors |
source |
Provenance |
null |
Provenance of this element |
swing |
left | right |
null |
Side the leaf opens to, seen from the wall’s start; unset: into the room |
type * |
door | window | opening |
|
|
wall_id * |
text |
|
|
width * |
number |
|
|
A planar solid in any orientation: dormer cheeks, canopies, fascia, anything walls can’t express. points is one face; the solid extends thickness behind it (against the face normal, which follows the right-hand rule on the point order).
| Field |
Type |
Default |
|
back_material |
text |
null |
|
edge_material |
text |
"wall_edge" |
|
id * |
text |
|
|
material |
text |
"brick_red" |
|
points * |
list of [number, number, number] |
|
|
source |
Provenance |
null |
Provenance of this element |
thickness |
number |
0.1 |
Depth behind the face (a pillar or a step block: its height) |
| Field |
Type |
Default |
|
element * |
text |
|
|
field * |
text |
|
Field path, e.g. ‘width’, ‘size.0’, ‘position.1’, ‘polygon.2.0’ |
offset |
number |
0.0 |
field = offset + scale * value |
scale |
number |
1.0 |
|
A size the user can change with a slider: it sets each target’s field to offset + scale * value, so one slider can resize a table and move its chairs along.
| Field |
Type |
Default |
|
id * |
text |
|
|
max * |
number |
|
|
min * |
number |
|
|
name * |
text |
|
|
step |
number |
0.01 |
|
targets * |
list of ParamTarget |
|
|
unit |
m | deg | `` |
"m" |
|
value * |
number |
|
|
Where an element came from, so the UI can show it and people can check it.
| Field |
Type |
Default |
|
confidence |
number |
null |
|
kind * |
plan | photo | assumed | user | agent |
|
|
note |
text |
null |
|
ref |
text |
null |
e.g. ‘d0p10 px[1062,1623]’ or ‘photo 0’ or a chat message id |
A roof: parametric (gable, hip, shed, flat over a rectangular outline) or one hand-made planar face (kind = "face", its top surface as 3D points). Walls and ceilings that reach above a roof’s underside are trimmed to it, so gable walls can simply be modelled taller than the roof. See roofs.py for the parameters.
| Field |
Type |
Default |
|
dormer |
Dormer |
null |
Set when this roof is a dormer’s (add_dormer) |
eave_z |
number |
null |
Height of the top surface at the eaves along outline[0]-outline[1] |
eave_z2 |
number |
null |
gable/shed: eave height along outline[2]-outline[3] |
edge_material |
text |
"frame_white" |
|
gable_edges |
list of integer |
null |
gable over any outline: outline edges (i = outline[i]->outline[i+1]) that are gable ends; default: the wings’ ends |
holes |
list of list of [number, number] |
[] |
Plan-view polygons cut out of this face (dormers, chimneys); what rises through them is not trimmed |
id * |
text |
|
|
kind |
face | gable | hip | shed | flat |
"face" |
|
material |
text |
"roof_tile" |
|
outline |
list of [number, number] |
null |
parametric: plan rectangle the roof covers, overhangs included (hip/flat: any right-angled outline) |
pitch2_deg |
number |
null |
gable: pitch of the other side |
pitch_deg |
number |
null |
|
points |
list of [number, number, number] |
null |
face: top surface polygon (absolute z) |
ridge_at |
number |
null |
gable with ridge_z: ridge distance from outline[0]-outline[1] |
ridge_z |
number |
null |
gable/hip: ridge height (instead of pitch_deg) |
shed_edge |
integer |
null |
shed over any outline: the low edge |
skylights |
list of list of [number, number] |
[] |
Plan-view polygons of roof windows: cut out of the roof, with glass in the roof’s plane; ceilings below are still trimmed |
source |
Provenance |
null |
Provenance of this element |
thickness |
number |
0.3 |
|
trims |
true/false |
true |
Cut walls and ceilings that poke above the underside |
underside_material |
text |
"wood_panel" |
|
| Field |
Type |
Default |
|
ceiling_material |
text |
"paint_white" |
|
floor_material |
text |
"floor_oak" |
|
id * |
text |
|
|
name * |
text |
|
|
outdoor |
true/false |
false |
Balcony/terrace: floor only, no ceiling or lamp |
polygon * |
list of [number, number] |
|
|
source |
Provenance |
null |
Provenance of this element |
A stair from a level’s floor up by rise, along its walking line path (centre line, bottom to top). The path covers one going per riser and ends one going onto the upper floor. At path corners the treads turn as winders or with a landing (turn). See stairs.py.
| Field |
Type |
Default |
|
id * |
text |
|
|
path * |
list of [number, number] |
|
Walking line (centre), bottom to top, plan metres; ends one going onto the upper floor |
railing |
none | left | right | both |
"right" |
|
rise * |
number |
|
Height from this level’s floor to the top floor |
source |
Provenance |
null |
Provenance of this element |
steps * |
integer |
|
Number of risers |
stringers |
true/false |
true |
Side stringers (open stairs) |
style |
solid | open |
"open" |
open = floating treads; solid = blocks to the floor |
tread_material |
text |
"floor_oak" |
|
tread_thickness |
number |
0.05 |
|
turn |
winders | landing |
"winders" |
At path corners: winders (treads fan around the corner) or a square landing |
width |
number |
0.9 |
|
| Field |
Type |
Default |
|
base |
number |
0.0 |
Bottom of the wall above the level floor (gable infill over a recess) |
end * |
[number, number] |
|
|
finish |
WallFinish |
{"left": null, "right": null} |
|
height |
number |
null |
Top of the wall above the level floor; defaults to wall_height |
id * |
text |
|
|
source |
Provenance |
null |
Provenance of this element |
start * |
[number, number] |
|
|
thickness |
number |
0.15 |
|
trim_to_roof |
true/false |
true |
False for things that go through the roof (chimneys, dormer fronts) |
| Field |
Type |
Default |
|
left |
text |
null |
Material of the face left of start→end; unset: the facade render outside, white paint inside |
right |
text |
null |
Material of the face right of start→end; unset: as left |