-
Notifications
You must be signed in to change notification settings - Fork 3
/
geo_format.json
131 lines (126 loc) · 3.58 KB
/
geo_format.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"points" : [
// Point syntax:
// 1) A double - CoordX
// Example:
2.0, // Index is 0, (2.0, 0.0, 0.0) in space
// 2) An array of doubles:
// [CoordX]
// [CoordX, CoordY]
// [CoordX, CoordY, CoordZ]
// Examples:
[ 3.0 ], // Index is 1, (3.0, 0.0, 0.0) in space
[ 0.0, 5.0 ], // Index is 2, (0.0, 5.0, 0.0) in space
[ 10.0, 2.0, 3.0] // Index is 3, (10.0, 2.0, 3.0) in space
],
"curves" : [
// Curve syntax:
// [ typeTag, var1, var2, ... (var depends on different curve types) ]
// 1) Line: [ 0, startIndex, endIndex ]
// Example:
[0, 1, 2], // Index is 0
// 2) Circle: [1, startIndex, centerIndex, endIndex]
// Example:
[1, 4, 2, 3] // Index is 1
[1, 2, 3, 5] // Index is 2
// ...
],
"curveLoops" : [
// Curve loop syntax:
// [ indexOfCurve1, indexOfCurve2, indexOfCurve3, ...]
// curve index is an integer, negative means the direction is reversed
// Examples:
[1, 2, 3], // Index is 0
[2, -3, 4, 5], // Index is 1
[4, 5] // Index is 2
// ...
],
"surfaces" : [
// Surface syntax:
// [
// typeTag(0: Plane Surface, 1: Ruled Surface),
// indexOfCurveLoop1(exterior),
// indexOfCurveLoop2(a hole),
// indexOfCurveLoop1(another hole),
// ...
// ]
// Examples:
[0, 1],
[0, 2],
[0, 3, 4],
[1, 5]
// ...
],
"surfaceLoops" : [
// Surface loop syntax:
// [indexOfSurface1, indexOfSurface2, indexOfSurface3, ...]
// curve index is an integer, negative means the direction is reversed
// Examples:
[1, 3, 5],
[2, -4, 1]
// ...
],
"volumns" : [
// Volumn syntax:
// [
// typeTag(0: Regular Volumn, 1: ...),
// indexOfSurface1(exterior),
// indexOfSurface2(a hole),
// indexOfSurface3(another hole),
// ...
// ]
// Examples:
[0, 1],
[0, 2],
[0, 3, 5]
// ...
],
"pointsGroups" : [
// Points group syntax:
// [indexOfPoint1, indexOfPoint2, indexOfPoint3, ...]
[0, 1, 2],
[4, 5, 7, 9]
// ...
],
"curvesGroups" : [
// Curves group syntax:
// [indexOfCurve1, indexOfCurve2, indexOfCurve3, ...]
[0, 1, 2],
[5, 7, 6]
// ...
],
"surfacesGroups" : [
// Surfaces group syntax:
// [indexOfSurface1, indexOfSurface2, indexOfSurface3, ...]
[0, 1, 2],
[5, 7, 6]
// ...
],
"volumnGroups" : [
// Volumn group syntax:
// [indexOfVolumn1, indexOfVolumn2, indexOfVolumn3, ...]
[0, 1, 2],
[3, 4, 5, 6]
// ...
],
"groups" : [
// Group syntax
// [
// tag(A unique tag string),
// [ setTypeTag(0: pointsGroups, 1: curvesGroups,
// 2:surfacesGroups, 3: volumnGroups, 4: groups),
// indexOfEntity1, indexOfEntity2, ... ],
// [ setTypeTag,
// indexOfAnotherTypeEntity1, indexOfAnotherTypeEntity2, ... ],
// ...
// ]
// Example:
["theCube", [2, 1]],
["cornersOfTheCube", [0, 3]],
["edgesOfTheCube", [1, 2]],
["frontSurfaceOfTheCube", [2, 2]],
["anotherCube", [2, 2]],
["twoCubeCombo", [4, "theCube", "anotherCube"]]
// ...
]
}