Tools to group elements in subsets and to manage those subsets. More...
Functions | |
void | AssignSubset (Mesh *mesh, int subset_index) |
Assigns the selected elements to a subset. More... | |
void | AssignSubset (Mesh *mesh, int subset_index, bool assign_vertices, bool assign_edges, bool assign_faces, bool assign_volumes) |
Assigns the selected elements to a subset. More... | |
void | AssignNewSubset (Mesh *mesh, const char *name, bool assign_vertices, bool assign_edges, bool assign_faces, bool assign_volumes) |
Assigns selected elements to a new subset. More... | |
void | UnassignSubsets (Mesh *mesh, bool unassign_vertices, bool unassign_edges, bool unassign_faces, bool unassign_volumes) |
Unassigns selected elements from any subset. More... | |
void | SetSubsetName (Mesh *mesh, int subset_index, const char *name) |
void | MoveSubset (Mesh *mesh, int old_subset_index, int new_subset_index) |
Moves a subset to another index. More... | |
void | SwapSubsets (Mesh *mesh, int subset_index_1, int subset_index_2) |
Swaps two subsets. More... | |
void | JoinSubsets (Mesh *mesh, int target_subset_index, int subset_index_1, int subset_index_2, bool param) |
Joins two subsets. More... | |
void | EraseSubset (Mesh *mesh, int subset_index, bool erase_geometry) |
Erases a subset, but not its associated geometry. More... | |
void | AdjustSubsetsForUG3 (Mesh *mesh, bool keep_interface_subsets) |
Assigns face and edge indices so that the geometry can be used with ug3. More... | |
void | AdjustSubsetsForUG4 (Mesh *mesh, bool preserve_existing_subsets) |
Adjusts subsets for simulation with ug4. More... | |
void | AssignSubsetsByQuality (Mesh *mesh, int num_sections) |
Assigns the selected to a subset depending on their quality. More... | |
void | CopySubsetIndicesToSides (Mesh *mesh, bool selection_only, bool to_unassigned_elements_only) |
Copies subset indices of selected elements to sides of those elements. More... | |
void | EraseEmptySubsets (Mesh *mesh) |
Erases Subsets, which do not contain any elements at all. More... | |
void | AssignFaceSubsetsByAspectRatio (Mesh *mesh, int histogram_sections, bool erase_old_subsets) |
Assigns subsets according to an aspect ratio histogram. More... | |
void | AssignVolumeSubsetsByAspectRatio (Mesh *mesh, int histogram_sections, bool erase_old_subsets) |
Assigns subsets according to an aspect ratio histogram. More... | |
void | AssignSubsetsFromRaster (Mesh *mesh, const char *raster_file, int raster_dimension, bool vertices, bool edges, bool faces, bool volumes) |
Assigns the subset index for each element from the raster-cell in which the center of the element lies. More... | |
Tools to group elements in subsets and to manage those subsets.
Assigns face and edge indices so that the geometry can be used with ug3.
Adjusts subsets for simulation with ug4.
Assigns subsets according to an aspect ratio histogram.
void AssignNewSubset | ( | Mesh * | mesh, |
const char * | name, | ||
bool | assign_vertices, | ||
bool | assign_edges, | ||
bool | assign_faces, | ||
bool | assign_volumes | ||
) |
Assigns selected elements to a new subset.
void AssignSubset | ( | Mesh * | mesh, |
int | subset_index, | ||
bool | assign_vertices, | ||
bool | assign_edges, | ||
bool | assign_faces, | ||
bool | assign_volumes | ||
) |
Assigns the selected elements to a subset.
Assigns the selected to a subset depending on their quality.
void AssignSubsetsFromRaster | ( | Mesh * | mesh, |
const char * | raster_file, | ||
int | raster_dimension, | ||
bool | vertices, | ||
bool | edges, | ||
bool | faces, | ||
bool | volumes | ||
) |
Assigns the subset index for each element from the raster-cell in which the center of the element lies.
void AssignVolumeSubsetsByAspectRatio | ( | Mesh * | mesh, |
int | histogram_sections, | ||
bool | erase_old_subsets | ||
) |
Assigns subsets according to an aspect ratio histogram.
void CopySubsetIndicesToSides | ( | Mesh * | mesh, |
bool | selection_only, | ||
bool | to_unassigned_elements_only | ||
) |
Copies subset indices of selected elements to sides of those elements.
void EraseEmptySubsets | ( | Mesh * | mesh | ) |
Erases Subsets, which do not contain any elements at all.
Erases a subset, but not its associated geometry.
void JoinSubsets | ( | Mesh * | mesh, |
int | target_subset_index, | ||
int | subset_index_1, | ||
int | subset_index_2, | ||
bool | param | ||
) |
Joins two subsets.
Moves a subset to another index.