9.1
general documentation
cs_mesh_cut.h File Reference
#include "base/cs_defs.h"
#include "mesh/cs_mesh.h"
+ Include dependency graph for cs_mesh_cut.h:

Go to the source code of this file.

Functions

void cs_mesh_cut (cs_mesh_t *mesh, const cs_real_t p_normals[][3], const cs_real_t p_origins[][3])
 Cut cells with planes. More...
 

Function Documentation

◆ cs_mesh_cut()

void cs_mesh_cut ( cs_mesh_t mesh,
const cs_real_t  p_normals[][3],
const cs_real_t  p_origins[][3] 
)

Cut cells with planes.

Each cell can be cut by a single plane, defined by its normal and an origin (i.e. any point in the plane). Cells whose assigned normals are null vectors are not cut.

The polygons created by the cut are added to a new group, "auto:closing_polygons".

This function should be followed by applying a joining on the group, "auto:transformed_internal_faces".

Parameters
[in,out]meshmesh to cut
[in]p_normalsarray of plane_normals of size mesh->n_cells
[in]p_originsarray of plane origins of size mesh->n_cells