-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
THREE.js viewer example missing face colors #15
Comments
I prefer to use material groups instead of vertex colors, but both can work. A Pull Request is always welcome! |
Good to know, thanks! I'm relatively new to Threejs and learning these concerns this week. Appreciate your feedback. I've been trying to learn from https://github.com/kovacsv/Online3DViewer/blob/master/source/engine/import/importerocct.js Thanks for creating this awesome library! 🎉 |
The separation is intentional, actually the dependency is reversed: Online3DViewer uses occt-import-js under the hood. This library should be independent from Online 3D Viewer to make it usable more widely. |
How to show face colors with this library? |
I've added face color handling to the example: |
Appreciate your feedback, thanks very much! |
Oh, that's another issue than. I've created a new issue for this: #23 |
THREE.js viewer example: https://github.com/kovacsv/occt-import-js/blob/main/examples/three_viewer.html#L28-L64
I've added a working (so far in my tests)
face_colors
implementation to this Codesandbox: https://codesandbox.io/s/convert-step-file-to-glb-with-three-js-occt-import-js-v0-3-5hk66o?file=/src/StepLoader.jsThe text was updated successfully, but these errors were encountered: