get_mesh_ui_pair: Union and intersection for a single pair of 3D meshes

View source: R/functions.R

get_mesh_ui_pairR Documentation

Union and intersection for a single pair of 3D meshes

Description

Calculates the union and intersection of a single pair of 3D mesh objects.

Usage

get_mesh_ui_pair(x, boov=FALSE)

Arguments

x

list of two mesh objects as generated by get_mesh_pairs.

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

Front-end for the union / intersection methods of the cgalMesh class. Both are based on the CGAL library for computational geometry. Use get_mesh_ui to get the respective union and intersection for all pairs from a list of 3D meshes. For boov=TRUE, package Boov has to be installed separately.

Value

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

References

https://www.cgal.org/

See Also

get_mesh_pairs, get_mesh_ui, get_mesh_agree_pair, cgalMesh

Examples

heartL <- mesh3dL_to_cgalMeshL(data_heart_obsL)
pairL  <- get_mesh_pairs(heartL)
ui     <- get_mesh_ui_pair(pairL[[4]])

## volume of union/intersection
ui$vol_u
ui$vol_i

MeshAgreement documentation built on Nov. 25, 2022, 5:05 p.m.