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

How to look up mesh triangle number #807

Closed
ailaohuyou-bj opened this issue Feb 9, 2022 · 2 comments
Closed

How to look up mesh triangle number #807

ailaohuyou-bj opened this issue Feb 9, 2022 · 2 comments
Labels
question Further information is requested

Comments

@ailaohuyou-bj
Copy link

i want to know my model's triangle number,
Can someone tell me how to fix it?
thanks

@Amoki
Copy link
Contributor

Amoki commented Feb 9, 2022

Object.values(viewer.scene.objects).map(obj => obj.meshes).flat().map(mesh => mesh.numTriangles).reduce((num, acc) => acc += num)

@xeolabs xeolabs added the question Further information is requested label Aug 23, 2022
@xeolabs xeolabs closed this as completed Aug 23, 2022
@ailaohuyou-bj
Copy link
Author

ailaohuyou-bj commented Aug 23, 2022 via email

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

No branches or pull requests

3 participants