ProMesh User Manual  v4.3.19

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...
 

Detailed Description

Tools to group elements in subsets and to manage those subsets.

Function Documentation

◆ AdjustSubsetsForUG3()

void AdjustSubsetsForUG3 ( Mesh mesh,
bool  keep_interface_subsets 
)

Assigns face and edge indices so that the geometry can be used with ug3.

◆ AdjustSubsetsForUG4()

void AdjustSubsetsForUG4 ( Mesh mesh,
bool  preserve_existing_subsets 
)

Adjusts subsets for simulation with ug4.

◆ AssignFaceSubsetsByAspectRatio()

void AssignFaceSubsetsByAspectRatio ( Mesh mesh,
int  histogram_sections,
bool  erase_old_subsets 
)

Assigns subsets according to an aspect ratio histogram.

◆ AssignNewSubset()

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.

◆ AssignSubset() [1/2]

void AssignSubset ( Mesh mesh,
int  subset_index 
)

Assigns the selected elements to a subset.

◆ AssignSubset() [2/2]

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.

◆ AssignSubsetsByQuality()

void AssignSubsetsByQuality ( Mesh mesh,
int  num_sections 
)

Assigns the selected to a subset depending on their quality.

◆ AssignSubsetsFromRaster()

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.

◆ AssignVolumeSubsetsByAspectRatio()

void AssignVolumeSubsetsByAspectRatio ( Mesh mesh,
int  histogram_sections,
bool  erase_old_subsets 
)

Assigns subsets according to an aspect ratio histogram.

◆ CopySubsetIndicesToSides()

void CopySubsetIndicesToSides ( Mesh mesh,
bool  selection_only,
bool  to_unassigned_elements_only 
)

Copies subset indices of selected elements to sides of those elements.

◆ EraseEmptySubsets()

void EraseEmptySubsets ( Mesh mesh)

Erases Subsets, which do not contain any elements at all.

◆ EraseSubset()

void EraseSubset ( Mesh mesh,
int  subset_index,
bool  erase_geometry 
)

Erases a subset, but not its associated geometry.

◆ JoinSubsets()

void JoinSubsets ( Mesh mesh,
int  target_subset_index,
int  subset_index_1,
int  subset_index_2,
bool  param 
)

Joins two subsets.

◆ MoveSubset()

void MoveSubset ( Mesh mesh,
int  old_subset_index,
int  new_subset_index 
)

Moves a subset to another index.

◆ SetSubsetName()

void SetSubsetName ( Mesh mesh,
int  subset_index,
const char name 
)

◆ SwapSubsets()

void SwapSubsets ( Mesh mesh,
int  subset_index_1,
int  subset_index_2 
)

Swaps two subsets.

◆ UnassignSubsets()

void UnassignSubsets ( Mesh mesh,
bool  unassign_vertices,
bool  unassign_edges,
bool  unassign_faces,
bool  unassign_volumes 
)

Unassigns selected elements from any subset.