I have 2 lists of particles which I want to merge.
The method merge of POP_ParticleList doesn't run, I don't know if it's a bug or an error:
This is my code:
particleList->merge(particuleList2);
for (GEO_PrimParticle* part = particleList->iterateInit() ; part ; part = particleList->iterateNext()) {
for (GEO_ParticleVertex* pvtx = part->iterateInit() ; pvtx ; pvtx = pvtx->next) {
GEO_Point* pt = pvtx->getPt();
cout << pt->getPos().x() << “ - ” << pt->getPos().y() << “ - ” << pt->getPos().z() << endl;
}
}
Merge 2 Particle List
4120 5 1- Calysto
- Member
- 10 posts
- Joined: 8月 2010
- Offline
- Calysto
- Member
- 10 posts
- Joined: 8月 2010
- Offline
- Ondrej
- スタッフ
- 1081 posts
- Joined: 7月 2005
- Offline
- Calysto
- Member
- 10 posts
- Joined: 8月 2010
- Offline
- Ondrej
- スタッフ
- 1081 posts
- Joined: 7月 2005
- Offline
Particle primitives are compared by primitive number, not by pointer, so perhaps you have conflicting primitives from different details in your two lists. In which case, you shouldn't be merging the two lists anyway. Without knowing more about the rest of the code or what you're trying to achieve, I can't comment further.
- WhoDjini
- Member
- 94 posts
- Joined: 12月 2008
- Offline
-
- Quick Links