← Back to team overview

yade-users team mailing list archive

Re: [Question #188032]: looking for the InCylinder folder

 

Question #188032 on Yade changed:
https://answers.launchpad.net/yade/+question/188032

Chareyre proposed the following answer:
Just short comments before looking the details:
1- there is no need to implement anything in packPredicates in order to add a new shape. The classes I listed above are enough.
2- the word "cylinder" in packPredicates does not refer to the class defined in Cylinder.hpp/cpp, they are really independant things. So, if you want to test that simple renaming of "cylinder" shape works, better don't play with predicates at all.

For the error you get: did you declare a python binding as in
_packPredicates.cpp:342?

python::class_<inCylinder,python::bases<Predicate>
>("inCylinder","Cylinder predicate",python::init<const Vector3r&,const
Vector3r&,Real>(python::args("centerBottom","centerTop","radius"),"Ctor
taking centers of the lateral walls (as 3-tuples) and radius."));

If yes, does is work if you type:
pred=pack.inCylinder(... 

Else, you maybe forgot to import the relevant module.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.