Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make viewer suitable for non-triangulated files. #3

Open
fhb1990 opened this issue Dec 17, 2018 · 0 comments
Open

Make viewer suitable for non-triangulated files. #3

fhb1990 opened this issue Dec 17, 2018 · 0 comments

Comments

@fhb1990
Copy link
Owner

fhb1990 commented Dec 17, 2018

The viewer now only works for triangulated files. When a CityJSON file is uploaded, one Three.js geometry is created and all vertices are added to that. Then, from the CityJSON geometries, the Three.js geometry faces list is filled with THREE.Face3 objects, which only needs pointers to the vertices. Three.js can show polygonal geometries using ShapeGeometry, but this uses paths to build the edges of the polygons. This requires a different approach than the one currently implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant