Comments (3)
-
Based on your description, compressing VTK data should be possible as long as vtkCellArray represent connectivity of triangular meshes (Draco doesn't support general polygons). Currently we have importers only for .OBJ and .PLY, but we plan to add support for more formats in future. In case you don't want to wait for us, we always welcome any pull requests that would add support for additional formats. An example how to create a mesh from generic data has been shown in this issue: #15 . Additional examples would be our OBJ and PLY decoders.
-
As for the javascript, it is true that our current javascript API is for the decoder only, but it can be extended for the encoder too if there is sufficient demand.
from draco.
Thanks for your feedback.
For vtkCellArray, it is definitely a connectivity map but it does not need to be a set of triangles.
In fact we have a vtkCellArray per type of cells (verts, lines, polys, strip). On top of that the layout is [numberOfPoints, idx_0, ids_1, ... idx_n, numberOfPoints, idx_0, idx_1, numberOfPoints, ...]
And for the polys, the number of points can be more than 3 which means they can be quad, or even bigger. And I'm just talking about the vtkPolyData which are our surface mesh. The full set of dataset types can be found here in case you are interested. http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf
For the JavaScript I was just asking in case I could skip some build time. But no big deal here. Thx.
I'm going to look closer to the issue #15.
Otherwise do you think having a command line tool that can be used to compress files that are binary arrays could make sense? Or did I miss understood the library as all the arrays should be written in the same compressed file?
Anyway, thanks again for your feedback.
from draco.
I'm closing this issue. If you think we should talk more about it please re-open.
from draco.
Related Issues (20)
- Win32: Warning on wrong preprocessor syntax
- Building draco via vcpkg targeting wasm32-emscripten HOT 1
- obj_encoder functions produce invalid OBJ files when using a non-english numeric locale HOT 2
- Tests fail on 32 bit systems HOT 1
- FileReaderFactory not reading files HOT 3
- WASM integration information HOT 1
- [ANN] git default branch change: master -> main HOT 1
- OSS-Fuzz issue 65877 HOT 1
- OSS-Fuzz issue 65986
- OSS-Fuzz issue 65989 HOT 1
- OSS-Fuzz issue 66259
- Compilation Error Involving StatusOr and Status Classes in Draco Library HOT 2
- Gstatic, CDNs, and per-domain caching policy HOT 1
- Download links are broken HOT 1
- Support for quads HOT 1
- C++ Documentation Improvement
- Severity Code Description The project file line does not display status Error C2440 "Initialize" : Unable to transfer from "void *" to "tinygltf: : GetFileSizeFunction draco_decoder F: \ resource \ Draco - 1.5.6 \ SRC \ Draco \ IO \ gltf_decoder.cc 489 HOT 2
- Optimizing 3D data with Draco Geometry Compression HOT 1
- Android Studio Build Error
- tex_coord data has no compression
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 draco.