/
ModelPrimitive.json
116 lines (116 loc) · 3.53 KB
/
ModelPrimitive.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
{
"title": "foxglove.ModelPrimitive",
"description": "A primitive representing a 3D model file loaded from an external URL or embedded data",
"$comment": "Generated by https://github.com/foxglove/schemas",
"type": "object",
"properties": {
"pose": {
"title": "foxglove.Pose",
"description": "Origin of model relative to reference frame",
"type": "object",
"properties": {
"position": {
"title": "foxglove.Vector3",
"description": "Point denoting position in 3D space",
"type": "object",
"properties": {
"x": {
"type": "number",
"description": "x coordinate length"
},
"y": {
"type": "number",
"description": "y coordinate length"
},
"z": {
"type": "number",
"description": "z coordinate length"
}
}
},
"orientation": {
"title": "foxglove.Quaternion",
"description": "Quaternion denoting orientation in 3D space",
"type": "object",
"properties": {
"x": {
"type": "number",
"description": "x value"
},
"y": {
"type": "number",
"description": "y value"
},
"z": {
"type": "number",
"description": "z value"
},
"w": {
"type": "number",
"description": "w value"
}
}
}
}
},
"scale": {
"title": "foxglove.Vector3",
"description": "Scale factor to apply to the model along each axis",
"type": "object",
"properties": {
"x": {
"type": "number",
"description": "x coordinate length"
},
"y": {
"type": "number",
"description": "y coordinate length"
},
"z": {
"type": "number",
"description": "z coordinate length"
}
}
},
"color": {
"title": "foxglove.Color",
"description": "Solid color to use for the whole model if `override_color` is true.",
"type": "object",
"properties": {
"r": {
"type": "number",
"description": "Red value between 0 and 1"
},
"g": {
"type": "number",
"description": "Green value between 0 and 1"
},
"b": {
"type": "number",
"description": "Blue value between 0 and 1"
},
"a": {
"type": "number",
"description": "Alpha value between 0 and 1"
}
}
},
"override_color": {
"type": "boolean",
"description": "Whether to use the color specified in `color` instead of any materials embedded in the original model."
},
"url": {
"type": "string",
"description": "URL pointing to model file. One of `url` or `data` should be provided."
},
"media_type": {
"type": "string",
"description": "[Media type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of embedded model (e.g. `model/gltf-binary`). Required if `data` is provided instead of `url`. Overrides the inferred media type if `url` is provided."
},
"data": {
"type": "string",
"contentEncoding": "base64",
"description": "Embedded model. One of `url` or `data` should be provided. If `data` is provided, `media_type` must be set to indicate the type of the data."
}
}
}