#include "cs_base.h"
#include "cs_mesh.h"
Go to the source code of this file.
|
void | cs_mesh_extrude (cs_mesh_t *m, bool interior_gc, cs_lnum_t n_faces, cs_lnum_t n_vertices, const cs_lnum_t faces[], const cs_lnum_t vertices[], const cs_lnum_t n_layers[], const cs_coord_3_t coord_shift[], const float distribution[]) |
| Extrude mesh boundary faces in the normal direction. More...
|
|
void | cs_mesh_extrude_constant (cs_mesh_t *m, bool interior_gc, cs_lnum_t n_layers, double thickness, double reason, cs_lnum_t n_faces, const cs_lnum_t faces[]) |
| Extrude mesh boundary faces in the normal direction by a constant thickness. More...
|
|
§ cs_mesh_extrude()
Extrude mesh boundary faces in the normal direction.
Extrusion is defined on selected boundary faces, and the number of layers for each associated vertex may be (slightly) variable, to account for cluttered areas where extrusion may be constrained, or more complex extrusions.
- Parameters
-
[in,out] | m | mesh |
[in] | interior_gc | if true, maintain group classes of interior faces previously on boundary |
[in] | n_faces | number of selected boundary faces |
[in] | n_vertices | number of selected vertices |
[in] | faces | list of selected boundary faces (0 to n-1), or NULL if no indirection is needed |
[in] | vertices | ids of selected vertices (0 to n-1), or NULL if no indirection is needed |
[in] | n_layers | number of layers for each vertex |
[in] | coord_shift | extrusion vector for each vertex |
[in] | distribution | optional distribution of resulting vertices along each extrusion vector (size: n_vertices*n_layers) with values in range ]0, 1]. |
§ cs_mesh_extrude_constant()
Extrude mesh boundary faces in the normal direction by a constant thickness.
- Parameters
-
[in,out] | m | mesh |
[in] | interior_gc | if true, maintain group classes of interior faces previously on boundary |
[in] | n_layers | number of layers |
[in] | thickness | extrusion thickness |
[in] | reason | geometric reason for extrusion refinement |
[in] | n_faces | number of selected boundary faces |
[in] | faces | list of selected boundary faces (0 to n-1), or NULL if no indirection is needed |