cognitedata / 3d-web-parser Goto Github PK
View Code? Open in Web Editor NEWParser for Cognite 3D web viewer
License: Apache License 2.0
Parser for Cognite 3D web viewer
License: Apache License 2.0
Several of our models in production have nodes without color. @dragly fixed this by assigning them a color, but this makes i.e. Ivar Aasen look funny:
We should set gray as default color or figure out why the previous version of the viewer colors it gray.
As @Verkhovskaya mentioned, the way the different groups are created now is way more code than is requred. Instead of having setColor(color: THREE.Color)
etc, we can have generic
set(type, value)
and each group defines a list of types (the parent class PrimitiveGroup
will start the list by having
this.types = {
nodeId: new Float64Array(this.count);
treeIndex: new Float32Array(this.count);
color: new Float32Array(3 * this.count);
}
whereas the CircleGroup
will have in its constructor
this.types['normal'] = new Float32Array(3 * this.count)
or something.
It would seem that neither of these need to be async. If this is fixed, the await statements in the viewer would need to be removed too.
After a group is full / a new one is created, we may want to resize the current group so its capacity is exactly its count to minimize memory usage. This will require some extra copying which hopefully isn't much slower.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.