Question #660522 on Yade changed:
https://answers.launchpad.net/yade/+question/660522
Status: Needs information => Answered
Bruno Chareyre proposed the following answer:
Hi John,
A question here is what is 'file.stl'.
If it comes from an analytical description of the shape, then this description
could be used to filter some particles out.
If your question is "how to do that for a general stl" it is more involved, it
will need to define what is inside and what is outside for an arbitrary
collection of facets. I'm not even sure there is a general answer.
If you know how to define "inside" and "outside", then you can simply write
sp.makeCloud((0,0,3),(20,20,15),rMean=0.5)
for x,r in sp:
if (is inside) sp.toSimulation()
Cheers
Bruno
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp