Skip to content

Class muda::spatial_hash::SpatialPartitionCell

ClassList > muda > spatial_hash > SpatialPartitionCell

To represent a cell-object pair in the spatial hash 3D grid e.g. (cell_id,object_id) = (1024, 32) for the meaning: the 32th object overlap with the 1024th cell.

  • #include <sparse_spatial_hash_impl.h>

Public Types

Type Name
typedef uint32_t U32
typedef Eigen::Vector3< uint32_t > Vector3u

Public Attributes

Type Name
U32 cid
struct muda::spatial_hash::SpatialPartitionCell ctlbit
U32 home
U32 oid
U32 overlap
U32 pass

Public Functions

Type Name
MUDA_GENERIC SpatialPartitionCell ()
MUDA_GENERIC SpatialPartitionCell (U32 cid, U32 oid)
MUDA_GENERIC bool is_home () const
MUDA_GENERIC bool is_phantom () const
MUDA_GENERIC void set_as_home (const Vector3u & ijk)
MUDA_GENERIC void set_as_phantom (const Vector3u & home_ijk, const Vector3u & cell_ijk)
MUDA_GENERIC void set_overlap (const Vector3u & ijk)

Public Static Functions

Type Name
MUDA_GENERIC bool allow_ignore (const SpatialPartitionCell & l, const SpatialPartitionCell & r)
MUDA_GENERIC U32 pass_type (const Vector3u & ijk)

Public Types Documentation

typedef U32

using muda::spatial_hash::SpatialPartitionCell::U32 =  uint32_t;

typedef Vector3u

using muda::spatial_hash::SpatialPartitionCell::Vector3u =  Eigen::Vector3<uint32_t>;

Public Attributes Documentation

variable cid

U32 muda::spatial_hash::SpatialPartitionCell::cid;

variable ctlbit

struct muda::spatial_hash::SpatialPartitionCell muda::spatial_hash::SpatialPartitionCell::ctlbit;

variable home

U32 muda::spatial_hash::SpatialPartitionCell::home;

variable oid

U32 muda::spatial_hash::SpatialPartitionCell::oid;

variable overlap

U32 muda::spatial_hash::SpatialPartitionCell::overlap;

variable pass

U32 muda::spatial_hash::SpatialPartitionCell::pass;

Public Functions Documentation

function SpatialPartitionCell [1/2]

inline MUDA_GENERIC muda::spatial_hash::SpatialPartitionCell::SpatialPartitionCell () 

function SpatialPartitionCell [2/2]

inline MUDA_GENERIC muda::spatial_hash::SpatialPartitionCell::SpatialPartitionCell (
    U32 cid,
    U32 oid
) 

function is_home

inline MUDA_GENERIC bool muda::spatial_hash::SpatialPartitionCell::is_home () const

function is_phantom

inline MUDA_GENERIC bool muda::spatial_hash::SpatialPartitionCell::is_phantom () const

function set_as_home

inline MUDA_GENERIC void muda::spatial_hash::SpatialPartitionCell::set_as_home (
    const Vector3u & ijk
) 

function set_as_phantom

inline MUDA_GENERIC void muda::spatial_hash::SpatialPartitionCell::set_as_phantom (
    const Vector3u & home_ijk,
    const Vector3u & cell_ijk
) 

function set_overlap

inline MUDA_GENERIC void muda::spatial_hash::SpatialPartitionCell::set_overlap (
    const Vector3u & ijk
) 

Public Static Functions Documentation

function allow_ignore

static inline MUDA_GENERIC bool muda::spatial_hash::SpatialPartitionCell::allow_ignore (
    const SpatialPartitionCell & l,
    const SpatialPartitionCell & r
) 

function pass_type

static inline MUDA_GENERIC U32 muda::spatial_hash::SpatialPartitionCell::pass_type (
    const Vector3u & ijk
) 


The documentation for this class was generated from the following file src/muda/ext/geo/spatial_hash/sparse_spatial_hash_impl.h