> The problem I mentioned above is solved. Please be more specific so others can learn. What exactly was wrong and how did you fix it?
> > Another problem I face is model specific. There's a .g file named > axis.g in BRL-CAD examples. It works perfectly fine. But when I upload > another model, for instance ktang.g (also in BRL-CAD examples), I get > the following error on converting the merged object to .obj file. Is ktank merged with axis or are the regions in ktank being merged together? > nmg_bool(): Dangling faces detected in rA after boolean > I20160803-15:22:07.209(5.5)? > I20160803-15:22:07.210(5.5)? conversion of /aagWadraD9338g3fH FAILED! > I20160803-15:22:07.211(5.5)? > I20160803-15:22:07.212(5.5)? ERROR: bad pointer 0xad5180: s/b union > tree(x91191191), was Zero_Magic_Number(x0), file > /home/jordi/Escriptori/brlcad-7.24.2/src/librt/db_tree.c, line 1339 > > Any leads how to solve this ? This is not easy to solve robustly because it’s logically NP-complete and numerically unstable due to floating point. Basically, it’s trying to turn the implicit CSG boolean expression into a single triangle mesh. It’s failing. This can happen for many many reasons. In this particular case, it looks like it’s failing because of a logic bug. At some point in the processing, it is expecting to get a tree of geometry and it encountered a NULL pointer instead. Instead of crashing, it detected the situation and aborted the boolean evaluation. So, options. You can debug the logic bug, figure out where the NULL came from or make it do something besides abort when encountered — this requires proficiency with a debugger and C. You can often get a successful conversion by “nudging” the evaluation down a different logic path — this basically entails trying out different tolerance values like -a 0.1(brlman g-obj) when a failure is encountered. You could change the backend to avoid traditional boolean evaluation — this would be a major architecture change involving something like verbnurbs or csg.js or Cheers! Sean ------------------------------------------------------------------------------ _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel