#include "base/cs_defs.h"#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <limits.h>#include <cmath>#include <chrono>#include "bft/bft_printf.h"#include "base/cs_math.h"#include "mesh/cs_mesh.h"#include "mesh/cs_mesh_adjacencies.h"#include "mesh/cs_mesh_boundary.h"#include "mesh/cs_mesh_group.h"#include "mesh/cs_mesh_cut.h"
Include dependency graph for cs_mesh_cut.cpp: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... | |
| 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".
| [in,out] | mesh | mesh to cut |
| [in] | p_normals | array of plane_normals of size mesh->n_cells |
| [in] | p_origins | array of plane origins of size mesh->n_cells |