MeshSolver.add_normal_force_with_faces

MeshSolver.add_normal_force_with_faces(faces_flat, face_sizes, magnitude=1.0)

Add a normal force (inflation) using custom face topology.

This applies forces along face normals, causing inflation or deflation depending on the magnitude’s sign.

Parameters:
faces_flatndarray

Flattened array of face vertex indices, where consecutive indices describe each face.

face_sizesndarray

Array indicating how many vertices are in each face.

magnitudefloat, optional

Magnitude of the normal force. Positive values inflate, negative values deflate.

Returns:
bool

True if the force was added successfully.