|
本帖最后由 nobody007 于 2012-4-20 17:45 编辑
& M+ G- g- w! D) U* ]1 ]5 M2 ?: c6 g+ j- G
nxopen++,看例子大多使用的7 B6 L k% H/ H+ [
9 Z# f" x1 m7 {! Q/ b3 V; U7 C6 V+ H- Component *root = displayPart->ComponentAssembly()->RootComponent();
- if (root!=NULL) // 是assembly
- {
- std::vector<Component *>childComps = root->GetChildren();
- }4 ~6 Z! s- C- `7 p L( M% z5 {
! X+ u8 t {5 ?/ S9 R7 U. g复制代码
- D" Q' j5 S8 G4 U- \; T8 ~
" l! Z, c/ d& B; f& I6 C& L9 F但是怎么我单步调试进去GetChildren()就直接溢出了,得到了超过100万个component在vector里面?1 T8 r; E' e2 j, ~! G; L
怎么网上找到的都是这段代码,却没一个跑的起来的: e: G6 [$ Y- f; P
; o% K6 F$ t; L b
再次感觉nxopen++的文档比open c 的api文档差的不是一星半点.
$ T- `& A; B8 Y& y: g1 M; d0 L" ^) X! r- Y) }
|
|