This function allows the user to trim a surface with a set of selected curves. The function receives the surface and one or more (closed) curves.

Note that the final surface depends on the direction of the curve used for the trim operation, as shown below.

Figure 1. Squared surface trimmed by a circle