Learn R Programming

MeshAgreement (version 0.1.4)

get_mesh_ui_pair: 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)

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.

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.

References

https://www.cgal.org/

See Also

get_mesh_pairs, get_mesh_ui, get_mesh_agree_pair, cgalMesh

Examples

Run this code
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

Run the code above in your browser using DataLab