Comments (6)
Not sure about this one. Seems more like a historical artifact due to the systems of that time being big endian. From the Geomview page:
This is the native format for 'int's and 'float's on Sun-3's, Sun-4's, and Irises, among others.
I'm not even sure if correct endianness conversion is feasible for floats, see also the Boost.Endian FAQ. Looks like simply swapping bytes around is not sufficient.
from pmp-library.
Well it's not like big-endian systems completely disappeared anyway, POWER9 can handle both, so using native-endian for a binary on-disk format is really a bad idea.
from pmp-library.
While naive byte swapping may not work well, there are other ways of performing floating point binary I/O, e.g. https://github.com/MalcolmMcLean/ieee754
from pmp-library.
After writing the above I was thinking about how protobuf does binary float encoding, and it looks like they just assume the same endinaness as int32_t and use that to write little endian binaries: https://github.com/protocolbuffers/protobuf/blob/5d876c9fec1a6f2feb0750694f803f89312bffff/src/google/protobuf/wire_format_lite.h#L827
from pmp-library.
I agree it would be nice to make this consistent with the spec. I'll give it a shot, not sure when I'll find time though.
from pmp-library.
Our CI is not yet ready for some C++23 functionality I was using to implement this.
from pmp-library.
Related Issues (20)
- remnants of submodules HOT 2
- missing faces in face circulator HOT 2
- Curious, is this topology a legitimate and supported halfedge data structure? HOT 2
- extract texture png file HOT 1
- Valence of faces are unexpectedly 0, affecting is_triangle_mesh() HOT 6
- Issue in hole filling algorithm HOT 1
- Parameterization with stitched edges
- Regression: Shader info logs are not reported on compile error HOT 3
- Keyboard modifier state is not tracked correctly when ImGui is capturing the keyboard HOT 2
- SurfaceMesh gives the error result HOT 1
- OpenGL 4.6 support? HOT 1
- In laplace_matrix function, Eigen SparseMatrix setFromTriplets gives "double free or corruption (out)" Error. HOT 5
- write_obj followed by read_obj crashes when the mesh has halfedge texcoords HOT 1
- Topology Exception reading binary STL files HOT 8
- Help Needed - How to use this in iOS Project
- Bug of Renderer::update_opengl_buffers? HOT 6
- WebGL demo apps broken with latest Emscripten release
- Missing include in example
- can't obj read normal vectors?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmp-library.