sfepy.mechanics.contact_bodies module

class sfepy.mechanics.contact_bodies.ContactPlane(anchor, normal, bounds)[source]
get_distance(points)[source]
mask_points(points)[source]
class sfepy.mechanics.contact_bodies.ContactSphere(centre, radius)[source]
get_distance(points)[source]

Get the penetration distance and normals of points w.r.t. the sphere surface.

Returns:
darray

The penetration distance.

normalsarray

The normals from the points to the sphere centre.

mask_points(points, eps)[source]
sfepy.mechanics.contact_bodies.plot_points(ax, points, marker, **kwargs)[source]
sfepy.mechanics.contact_bodies.plot_polygon(ax, polygon)[source]