Skip to content

Instantly share code, notes, and snippets.

@hugoledoux
Created May 11, 2023 09:27
Show Gist options
  • Save hugoledoux/c982e49294d92390ab491f6751a0d228 to your computer and use it in GitHub Desktop.
Save hugoledoux/c982e49294d92390ab491f6751a0d228 to your computer and use it in GitHub Desktop.
a cube with a genus of 1
{
"CityObjects":
{
"id-1":
{
"geometry":
[
{
"type": "Solid",
"lod": "1",
"boundaries":
[
[
[
[
0,
1,
2,
3
],
[
4,
5,
6
]
],
[
[
7,
8,
9,
10
],
[
11,
12,
13
]
],
[
[
0,
3,
8,
7
]
],
[
[
3,
2,
9,
8
]
],
[
[
2,
1,
10,
9
]
],
[
[
1,
0,
7,
10
]
],
[
[
6,
5,
13,
12
]
],
[
[
4,
6,
12,
11
]
],
[
[
5,
4,
11,
13
]
]
]
]
}
],
"type": "Building"
}
},
"version": "1.1",
"type": "CityJSON",
"vertices":
[
[
0,
0,
0
],
[
0,
1000,
0
],
[
1000,
1000,
0
],
[
1000,
0,
0
],
[
200,
200,
0
],
[
700,
200,
0
],
[
500,
700,
0
],
[
0,
0,
1000
],
[
1000,
0,
1000
],
[
1000,
1000,
1000
],
[
0,
1000,
1000
],
[
200,
200,
1000
],
[
500,
700,
1000
],
[
700,
200,
1000
]
],
"transform":
{
"scale":
[
0.001,
0.001,
0.001
],
"translate":
[
0.0,
0.0,
0.0
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment