(仅供参考)
根据step文件的文本内容将其进行分割,这里将所有叶节点都存到一个数组中,若需要层级结构,可修改遍历 relation 的地方。
若也有使用js加载step的需求,可使用opencascade.js
(for reference only)
It is divided according to the text content of the step file. Here, all leaf nodes are stored in an array. If you need hierarchy, you can modify the traversal relation.
If you also need to use js to load step, you can use opencascade.js