|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Settings for compiling an Expr into a Tape. More...
#include <EBGeometry_Tape.hpp>
Public Attributes | |
| uint32_t | m_largeUnionWarning = 64 |
| A union or smooth union evaluated as written (not built with Accelerate::BVH) of at least this many objects prints a warning to stderr when the tape is built, suggesting Accelerate::BVH; 0 silences it. Nested sharp unions count as one (Union(Union(a, b), c) is a union of three). | |
| BVH::Construction | m_construction = BVH::Construction::SAH |
| How the BVHs of unions built with Accelerate::BVH are built. | |
| uint32_t EBGeometry::TapeOptions::m_largeUnionWarning = 64 |
A union or smooth union evaluated as written (not built with Accelerate::BVH) of at least this many objects prints a warning to stderr when the tape is built, suggesting Accelerate::BVH; 0 silences it. Nested sharp unions count as one (Union(Union(a, b), c) is a union of three).
The default is where a BVH pays on the host and on a device alike. Measured on a lattice of N spheres, 16 evaluations per point (one core of an i9-12900K, and an RTX 3080 through GPU::transform()), the BVH beat the union as written from N = 12 on the host (2.6x faster at 64), but only from about N = 50 to 60 on the device (12 to 15% faster at 64), where the operands' arithmetic is cheap next to the traversal; at 32 the BVH was 1.6x faster on the host and up to 34% slower on the device.