← Back to team overview

yade-users team mailing list archive

Re: [Question #266644]: creating a predicate

 

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

Václav Šmilauer proposed the following answer:
You can also create your own predicate class in python and describe the
geometry analytically. You can look in py/pack/pack.py, find "class
inGtsSurface_py" (which is normally not used at all) and write something
similar in your code. You need to inherit from the
_packPredicates.Predicate base class and override all the methods
(__init__, aabb, __call__) in python. HTH, Václav

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