Skip to content
Snippets Groups Projects
Verified Commit 75e259d2 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Use std::variant in intersection to store a face, a face vector, or none

The common case of an intersection is when it has only one face. For this case we use a variant that either holds one face, a vector of faces, or none. This way the common case is stored in the stack whereas the general case is still possible but needs dynamic allocation
parent 008a3826
Branches
Tags
1 merge request!753Use less allocations on UGGrid intersection geometries
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment