splinepy.multipatch.Multipatch.boundary_from_function#
- Multipatch.boundary_from_function(function, mask=None, boundary_id=None)[source]#
Uses all faces, that were identified as boundaries in the interfaces array and checks if they fit a boundary function
- Parameters:
function (Callable) – Function called on every boundary center point to check if it is on the boundary, returns bool-type
mask (array-like) – If assigned, takes only boundaries with matching ids
boundary_id (int) – boundary_id to be assigned. If not chosen set to new lowest value
- Return type:
None