<s>
JMesh	B-Application
is	O
a	O
JSON-based	O
portable	O
and	O
extensible	O
file	O
format	O
for	O
the	O
storage	O
and	O
interchange	O
of	O
unstructured	O
geometric	O
data	O
,	O
including	O
discretized	O
geometries	O
such	O
as	O
triangular	O
and	O
tetrahedral	O
meshes	O
,	O
parametric	O
geometries	O
such	O
as	O
NURBS	O
curves	O
and	O
surfaces	O
,	O
and	O
constructive	O
geometries	O
such	O
as	O
constructive	O
solid	O
geometry	O
(	O
CGS	O
)	O
of	O
shape	O
primitives	O
and	O
meshes	O
.	O
</s>
<s>
Built	O
upon	O
the	O
JData	B-Protocol
specification	O
,	O
a	O
JMesh	B-Application
file	O
utilizes	O
the	O
JSON	B-General_Concept
and	O
Universal	O
Binary	O
JSON	B-General_Concept
(	O
UBJSON	B-Protocol
)	O
constructs	O
to	O
serialize	O
and	O
encode	O
geometric	O
data	O
structures	O
,	O
therefore	O
,	O
it	O
can	O
be	O
directly	O
processed	O
by	O
most	O
existing	O
JSON	B-General_Concept
and	O
UBJSON	B-Protocol
parsers	O
.	O
</s>
<s>
The	O
JMesh	B-Application
specification	O
defines	O
a	O
list	O
of	O
JSON-compatible	O
constructs	O
to	O
encode	O
geometric	O
data	O
,	O
including	O
N-dimensional	O
(	O
ND	O
)	O
vertices	O
,	O
curves	O
,	O
surfaces	O
,	O
solid	O
elements	O
,	O
shape	O
primitives	O
,	O
their	O
interactions	O
(	O
such	O
as	O
CGS	O
)	O
and	O
spatial	O
relations	O
,	O
together	O
with	O
their	O
associated	O
properties	O
,	O
such	O
as	O
numerical	O
values	O
,	O
colors	O
,	O
normals	O
,	O
materials	O
,	O
textures	O
and	O
other	O
properties	O
related	O
to	O
graphics	O
data	O
manipulation	O
,	O
3-D	O
fabrication	O
,	O
computer	O
graphics	O
rendering	O
and	O
animations	O
.	O
</s>
<s>
where	O
the	O
strings	O
in	O
"	O
_ArrayZipData_	O
"	O
store	O
the	O
row-major	O
serialized	O
,	O
Zlib-compressed	O
and	O
Base64	B-Protocol
encoded	O
binary	O
stream	O
of	O
the	O
raw	O
binary	O
array	O
data	O
in	O
the	O
precision	O
specified	O
in	O
_ArrayType_	O
.	O
</s>
<s>
All	O
JMesh	B-Application
files	O
are	O
JData	B-Protocol
specification	O
compliant	O
.	O
</s>
<s>
Same	O
as	O
JData	B-Protocol
,	O
it	O
has	O
both	O
a	O
text-format	O
based	O
on	O
JSON	B-General_Concept
serialization	O
scheme	O
and	O
a	O
binary	O
format	O
based	O
on	O
the	O
UBJSON	B-Protocol
serialization	O
scheme	O
.	O
</s>
<s>
named	O
JData	B-Protocol
nodes	O
)	O
can	O
be	O
defined	O
using	O
one	O
of	O
the	O
two	O
forms	O
:	O
an	O
N-D	O
array	O
or	O
a	O
structure	O
.	O
</s>
<s>
For	O
simple	O
data	O
,	O
one	O
can	O
use	O
the	O
"	O
array	O
form	O
"	O
to	O
store	O
the	O
data	O
under	O
a	O
JMesh	B-Application
keyword	O
.	O
</s>
<s>
In	O
such	O
case	O
,	O
the	O
format	O
of	O
the	O
data	O
must	O
follow	O
the	O
rules	O
defined	O
in	O
the	O
JData	B-Protocol
specification	O
.	O
</s>
<s>
One	O
can	O
also	O
use	O
a	O
JData	B-Protocol
structure	O
to	O
store	O
the	O
primary	O
data	O
as	O
well	O
as	O
to	O
support	O
additional	O
metadata	O
associated	O
with	O
the	O
container	O
.	O
</s>
<s>
The	O
optional	O
"	O
_DataInfo_	O
"	O
is	O
the	O
JData	B-Protocol
construct	O
for	O
storing	O
metadata	O
associated	O
with	O
this	O
structure	O
.	O
</s>
<s>
Because	O
JMesh	B-Application
specification	O
is	O
defined	O
base	O
on	O
the	O
JData	B-Protocol
specification	O
,	O
it	O
shares	O
the	O
same	O
underlying	O
data	O
serialization	O
formats	O
,	O
i.e.	O
</s>
<s>
JSON	B-General_Concept
for	O
text-based	O
JMesh	B-Application
files	O
(	O
.jmsh	O
)	O
and	O
BJData/UBJSON	O
for	O
binary-based	O
JMesh	B-Application
files	O
(	O
.bmsh	O
)	O
.	O
</s>
<s>
Most	O
existing	O
JSON	B-General_Concept
parsers	O
can	O
readily	O
parse	O
the	O
text-based	O
JMesh	B-Application
files	O
,	O
and	O
similarly	O
,	O
existing	O
UBJSON	B-Protocol
parsers	O
can	O
be	O
used	O
to	O
parse	O
.bmsh	O
files	O
without	O
modification	O
.	O
</s>
<s>
In	O
MATLAB/GNU	O
Octave	O
,	O
saving	O
mesh	O
data	O
to	O
the	O
JMesh	B-Application
format	O
is	O
supported	O
in	O
Iso2Mesh	O
-	O
a	O
toolbox	O
-	O
via	O
the	O
savejmesh	O
function	O
.	O
</s>
