Hi everyone,
I used the Shattered demo convertScShattered_TreeNode GitHub - toshi-bata/shattered: This sample creates shattered assembly from a monolithic assembly file using HOOPS Exchange and LibConverter of HOOPS Communicator. and found that some parts were missing from this drawing. Are there any parameters that can be set or adjusted in the Shattered demo。
Pelican 1400 (1).zip (1.4 MB)
Any insights or suggestions would be appreciated!
Hi 18234083588,
Thank you for your inquiry.
This sample generates SC models for each part, but in the attached model, the component under the root is both a part—with six bodies—and a subassembly containing four subcomponents. The current source code treats this component as a subassembly, which results in the part with six bodies not being output.
I modified the source code to also treat this component as a part.
When generating the shattered parts, the subassembly is output separately, so I made sure that the part does not include the subcomponents.
Here is the modified source code:
ImportExport.cpp (22.5 KB)
Please try using this modified source code and see if it resolves the issue.
Thank you very much for your reply. The code modification is effective this way.