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

DRACOExporter: Properly support point clouds. #20706

Merged
merged 2 commits into from
Nov 20, 2020
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 18, 2020

Related issue: -

Description

It was already possible to export point cloud data with DRACOExporter. However, using the intended API for exporting point clouds makes the resulting DRC file a bit smaller (around 5-10%). Besides, the geometry type is now correct. It was TRIANGULAR_MESH before, now it is POINT_CLOUD.

Since the exporter needs to distinct meshes from point clouds, parse() has slightly changed. The first parameter is now of type Mesh or Points and not a geometry anymore. The exporter now throws an error if the wrong object type is passed in.

@mrdoob mrdoob added this to the r123 milestone Nov 20, 2020
@mrdoob mrdoob merged commit 4356a12 into mrdoob:dev Nov 20, 2020
@mrdoob
Copy link
Owner

mrdoob commented Nov 20, 2020

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants