Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
74a22c4f
Commit
74a22c4f
authored
Apr 24, 2012
by
Kenneth Vanhoey
Browse files
Read of binary ply files independently of endianness
parent
c4cef9f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Algo/Import/ply.c
View file @
74a22c4f
...
...
@@ -2075,12 +2075,6 @@ void get_binary_item(
char
*
byte
=
(
char
*
)
&
word
;
int
my_endianness
=
byte
[
0
]
?
PLY_BINARY_LE
:
PLY_BINARY_BE
;
if
(
my_endianness
==
PLY_BINARY_BE
)
printf
(
"Big endian
\n
"
)
;
else
printf
(
"Little endian
\n
"
)
;
switch
(
type
)
{
case
PLY_Int8
:
fread
(
ptr
,
1
,
1
,
fp
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment