-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
970eaa3
commit 5fc5bb2
Showing
5 changed files
with
665 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# 4 space indentation | ||
[*.py] | ||
indent_size = 4 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
from collections import OrderedDict | ||
|
||
|
||
HEADER = OrderedDict([ | ||
['centerX', 'd'], # 8bytes | ||
['centerY', 'd'], | ||
['centerZ', 'd'], | ||
['minimumHeight', 'f'], # 4bytes | ||
['maximumHeight', 'f'], | ||
['boundingSphereCenterX', 'd'], | ||
['boundingSphereCenterY', 'd'], | ||
['boundingSphereCenterZ', 'd'], | ||
['boundingSphereRadius', 'd'], | ||
['horizonOcclusionPointX', 'd'], | ||
['horizonOcclusionPointY', 'd'], | ||
['horizonOcclusionPointZ', 'd'] | ||
]) | ||
|
||
VERTEX_DATA = OrderedDict([ | ||
# 4bytes -> determines the size of the 3 following arrays | ||
['vertexCount', 'I'], | ||
['uVertexCount', 'H'], # 2bytes, unsigned short | ||
['vVertexCount', 'H'], | ||
['heightVertexCount', 'H'] | ||
]) | ||
|
||
INDEX_DATA16 = OrderedDict([ | ||
['triangleCount', 'I'], | ||
['indices', 'H'] | ||
]) | ||
INDEX_DATA32 = OrderedDict([ | ||
['triangleCount', 'I'], | ||
['indices', 'I'] | ||
]) | ||
|
||
EDGE_INDICES16 = OrderedDict([ | ||
['westVertexCount', 'I'], | ||
['westIndices', 'H'], | ||
['southVertexCount', 'I'], | ||
['southIndices', 'H'], | ||
['eastVertexCount', 'I'], | ||
['eastIndices', 'H'], | ||
['northVertexCount', 'I'], | ||
['northIndices', 'H'] | ||
]) | ||
EDGE_INDICES32 = OrderedDict([ | ||
['westVertexCount', 'I'], | ||
['westIndices', 'I'], | ||
['southVertexCount', 'I'], | ||
['southIndices', 'I'], | ||
['eastVertexCount', 'I'], | ||
['eastIndices', 'I'], | ||
['northVertexCount', 'I'], | ||
['northIndices', 'I'] | ||
]) |
Oops, something went wrong.