 |
PK_MESH_make_bodies |
|
PK_ERROR_code_t PK_MESH_make_bodies
(
--- received arguments ---
PK_MESH_t mesh, --- mesh
const PK_MESH_make_bodies_o_t *options, --- option structure
--- returned arguments ---
int *const n_bodies, --- number of result bodies
PK_BODY_t **const bodies --- result bodies
)
This function makes one or more bodies from the given 'mesh'.
Specific Errors:
PK_ERROR_bad_sharing mesh is already owned by a face (MILD)
PK_ERROR_bad_option_data bad option data (MILD)
This function creates one or more bodies from the provided 'mesh'. The body
will have one face for each connected component of the mesh. If a component
contains laminar mfins, then the corresponding face will be bounded by loops
of laminar edges positioned along the laminar mfins of the facets of the mesh
component.
Each loop of laminar mfins will have vertices inserted wherever the angle in
radians between two adjacent laminar mfins is greater than 'vertex_angle'.
This function will associate polylines to the edges and points to the vertices
of the result. If the input mesh consists of a single component, this will
simply be associated to the face of the result. Otherwise, if the input mesh
consists of multiple components, a new mesh is constructed for each face, made
by trimming the input mesh to that face, and the input mesh is then deleted.
Options are provided to control the preferred body type of the result, and,
if the result contains more than one separate component, whether the result
should be a single disjoint body or should be split up so that each component
becomes a separate body.
See here for more information.