MeshSolver.add_mesh_vertex_force
- MeshSolver.add_mesh_vertex_force(mesh, force_x=0.0, force_y=0.0, force_z=0.0, exclude_vertices=None)
Add vertex forces to all vertices of a COMPAS mesh.
- Parameters:
- mesh
compas.datastructures.Mesh The COMPAS mesh to add forces to.
- force_xfloat, optional
X component of the force vector. Default is 0.0.
- force_yfloat, optional
Y component of the force vector. Default is 0.0.
- force_zfloat, optional
Z component of the force vector. Default is 0.0.
- exclude_verticeslist, optional
List of vertices to exclude from forces. Default is None.
- mesh
- Returns:
- list
IDs of all added forces.