Question #226198 on Yade changed: https://answers.launchpad.net/yade/+question/226198
Anton Gladky proposed the following answer: 2013/4/8 Christian Jakob <question226...@answers.launchpad.net>: >> I am sure now that with utils.geom.facetBox the replaceByClumps cann't work. >> i think the reason is that the replaceByClumps take the Facet as Sphere and >> register the length of the Facet as radius. > > No, definitely not [1]. But there is still a known bug in facets, so you > should avoid facets. const Sphere* sphere = YADE_CAST<Sphere*> (b->shape.get()); Hmm, maybe I am missing something, but where do you check in the source code, that you have got really a sphere? Something like that. https://github.com/yade/trunk/blob/master/pkg/dem/VTKRecorder.cpp#L244 if(!(dynamic_cast<Sphere*>(Body::byId(I->getId1())->shape.get()))) continue; Anton -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp