Replies: 2 comments 2 replies
-
Hello. OCCT reads the gltf with keeping the assembly and sub-shape structure. It means no combining into single mesh. So, if you will try that on OCCT. If file by default have multiple faces, you will receive them. I can't say nothing for the "SingleShape" method. IT is not a part of OCCT. |
Beta Was this translation helpful? Give feedback.
-
Hello, @dpasukhi Here is the file. (I downloaded it for test purposes from an internet site) I have checked source code behind SingleShape method. According to this page: https://dev.opencascade.org/doc/overview/html/occt_user_guides__de_wrapper.html Best regards. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using Python-OCC, which is a Python package for interfacing OCCT core functions, to deal with 3D models.
I use RWGltf and related packages to import GLTF models. The models can be correctly rendered in an OCCViewer.
But when I tried to select the model in OCCViewer, some error occurred.
And when I tried to iterate Face in the Shape, (I imported the model as a single shape), there is only one Face and without any Vertex attached on it.
Here is my code for import GLTF models:
Here is how I iterate Face in a Shape:
Can anybody help explain the right way to deal with GLTF?
Or, how far does OCCT support GLTF?
Best regards,
Bill
Beta Was this translation helpful? Give feedback.
All reactions