← Back to team overview

yade-users team mailing list archive

Re: [Question #681292]: contact detection between polyhedra and sphere

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

there is no paper about Yade implementation. But sure you could find
something about the topic in general.

As the returned type is ScGeom, it computes penetration depth (no
volume).

The principle is (see [1]):
- find the closest point of the polyhedron to the sphere's center
- penetrationDepth = sphere.radius - distance(sphere.center, theClosestPoint) # pseudocode

cheers
Jan

[1] https://gitlab.com/yade-
dev/trunk/blob/master/pkg/dem/Polyhedra_Ig2.cpp#L322

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.