sfepy.mechanics.contact_bodies module

class sfepy.mechanics.contact_bodies.ContactPlane(anchor, normal, bounds)[source]
get_distance(self, points)[source]
mask_points(self, points)[source]
class sfepy.mechanics.contact_bodies.ContactSphere(centre, radius)[source]
get_distance(self, 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(self, points, eps)[source]
sfepy.mechanics.contact_bodies.plot_points(ax, points, marker, **kwargs)[source]
sfepy.mechanics.contact_bodies.plot_polygon(ax, polygon)[source]