Learn R Programming

MeshAgreement (version 0.1.4)

get_mesh_ui: Union and intersection for pairs from a list of 3D meshes

Description

Calculates the respective union and intersection for pairs from a list of 3D mesh objects.

Usage

get_mesh_ui(x, boov=FALSE)

Value

list of lists with two cgalMesh objects for the union and intersection as well as the name of the comparison and a name for the structure.

Arguments

x

list of observer/mesh objects as generated by read_mesh.

boov

logical. Use package MeshesUnion / MeshesIntersection instead of the corresponding cgalMesh methods for calculating union/intersection volumes. Depending on the meshes, this may have better performance.

Details

Pairs are assigned as the corresponding objects in x from the included observers. The respective first meshes from each observer are compared, then the respective second meshes, and so on. Front-end for union and intersection methods of the cgalMesh class. Both are based on the CGAL library for computational geometry. Use get_mesh_ui_pair to get the union and intersection for a single pair of meshes. For boov=TRUE, package Boov has to be installed separately.

References

https://www.cgal.org/

See Also

data_heart_obsL, read_mesh, get_mesh_ui_pair, cgalMesh

Examples

Run this code
heartL <- mesh3dL_to_cgalMeshL(data_heart_obsL)
## remove one structure to save time in running example
heartL$Obs01$Obs01_HEART <- NULL
heartL$Obs02$Obs02_HEART <- NULL
heartL$Obs03$Obs03_HEART <- NULL

## takes more time than reasonable for automated checking
if(interactive()) {
    uiL <- get_mesh_ui(heartL)
    
    ## volume of union/intersection for first pair
    uiL[[1]]$vol_u
    uiL[[1]]$vol_i
}

Run the code above in your browser using DataLab