occ
Loading...
Searching...
No Matches
morton.h File Reference
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <occ/core/macros.h>
Include dependency graph for morton.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  occ::geometry::MIndex
 
struct  occ::geometry::MIndex::Position
 
struct  occ::geometry::MIndexHash
 

Namespaces

namespace  occ
 
namespace  occ::geometry
 computational geometry functionality - marching cubes, Morton codes etc.
 
namespace  occ::geometry::constants
 

Typedefs

using occ::geometry::integer_type = uint64_t
 
using occ::geometry::floating_type = double
 

Variables

constexpr integer_type occ::geometry::constants::dim_pow_2 {9}
 
constexpr integer_type occ::geometry::constants::dim_pow_1 {3}
 
constexpr integer_type occ::geometry::constants::dim_pow_0 {1}
 
constexpr integer_type occ::geometry::constants::shift2A {18}
 
constexpr integer_type occ::geometry::constants::shift2B {36}
 
constexpr integer_type occ::geometry::constants::shift1A {6}
 
constexpr integer_type occ::geometry::constants::shift1B {12}
 
constexpr integer_type occ::geometry::constants::shift0A {2}
 
constexpr integer_type occ::geometry::constants::shift0B {4}
 
constexpr integer_type occ::geometry::constants::dilateM2 {0x7fc0000ff80001ff}
 
constexpr integer_type occ::geometry::constants::dilateM1 {0x01c0e070381c0e07}
 
constexpr integer_type occ::geometry::constants::dilateM0 {0x9249249249249249}
 
constexpr integer_type occ::geometry::constants::dilateTZ {0x4924924924924924}
 
constexpr integer_type occ::geometry::constants::dilateTY {0x2492492492492492}
 
constexpr integer_type occ::geometry::constants::dilateTX {0x9249249249249249}
 
constexpr integer_type occ::geometry::constants::dilateT1 {0xb6db6db6db6db6db}
 
constexpr integer_type occ::geometry::constants::dilateT2 {0xdb6db6db6db6db6d}
 
constexpr integer_type occ::geometry::constants::dilateT3 {0x6db6db6db6db6db6}
 
constexpr floating_type occ::geometry::constants::inv_log2x3 {0.48089834696}
 
constexpr integer_type occ::geometry::constants::max_level