HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM::FieldUtils Namespace Reference

Functions

template<typename Functor >
void forEachVoxelRange (const UT_Vector3I &start, const UT_Vector3I &end, const Functor &f)
 
SYS_FORCE_INLINE void setFieldValue (SIM_RawField &field, const UT_Vector3I &cell, fpreal32 value)
 
SYS_FORCE_INLINE fpreal32 getFieldValue (const SIM_RawField &field, const UT_Vector3I &cell)
 
SYS_FORCE_INLINE void setFieldValue (SIM_RawIndexField &field, const UT_Vector3I &cell, exint value)
 
SYS_FORCE_INLINE exint getFieldValue (const SIM_RawIndexField &field, const UT_Vector3I &cell)
 
SYS_FORCE_INLINE UT_Vector3I cellToFaceMap (const UT_Vector3I &cell, const int axis, const int direction)
 
SYS_FORCE_INLINE UT_Vector3I cellToCellMap (const UT_Vector3I &cell, const int axis, const int direction)
 
SYS_FORCE_INLINE UT_Vector3I cellToEdgeMap (const UT_Vector3I &cell, const int edge_axis, const int edge_index)
 
SYS_FORCE_INLINE UT_Vector3I cellToNodeMap (const UT_Vector3I &cell, const int node_index)
 
SYS_FORCE_INLINE UT_Vector3I faceToCellMap (const UT_Vector3I &face, const int axis, const int direction)
 
SYS_FORCE_INLINE UT_Vector3I faceToEdgeMap (const UT_Vector3I &face, const int face_axis, const int edge_axis, const int direction)
 
SYS_FORCE_INLINE UT_Vector3I faceToNodeMap (const UT_Vector3I &face, const int face_axis, const int node_index)
 
SYS_FORCE_INLINE UT_Vector3I edgeToFaceMap (const UT_Vector3I &edge, const int edge_axis, const int face_axis, const int direction)
 
SYS_FORCE_INLINE UT_Vector3I edgeToCellMap (const UT_Vector3I &edge, const int edge_axis, const int cell_index)
 
SYS_FORCE_INLINE UT_Vector3I nodeToFaceMap (const UT_Vector3I &node, const int face_axis, const int face_index)
 
SYS_FORCE_INLINE UT_Vector3I nodeToCellMap (const UT_Vector3I &node, const int cell_index)
 

Function Documentation

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::cellToCellMap ( const UT_Vector3I cell,
const int  axis,
const int  direction 
)

Definition at line 84 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::cellToEdgeMap ( const UT_Vector3I cell,
const int  edge_axis,
const int  edge_index 
)

Definition at line 109 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::cellToFaceMap ( const UT_Vector3I cell,
const int  axis,
const int  direction 
)

Definition at line 67 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::cellToNodeMap ( const UT_Vector3I cell,
const int  node_index 
)

Definition at line 130 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::edgeToCellMap ( const UT_Vector3I edge,
const int  edge_axis,
const int  cell_index 
)

Definition at line 229 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::edgeToFaceMap ( const UT_Vector3I edge,
const int  edge_axis,
const int  face_axis,
const int  direction 
)

Definition at line 209 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::faceToCellMap ( const UT_Vector3I face,
const int  axis,
const int  direction 
)

Definition at line 150 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::faceToEdgeMap ( const UT_Vector3I face,
const int  face_axis,
const int  edge_axis,
const int  direction 
)

Definition at line 167 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::faceToNodeMap ( const UT_Vector3I face,
const int  face_axis,
const int  node_index 
)

Definition at line 188 of file SIM_FieldUtils.h.

template<typename Functor >
void SIM::FieldUtils::forEachVoxelRange ( const UT_Vector3I start,
const UT_Vector3I end,
const Functor &  f 
)

Definition at line 27 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE fpreal32 SIM::FieldUtils::getFieldValue ( const SIM_RawField field,
const UT_Vector3I cell 
)

Definition at line 45 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE exint SIM::FieldUtils::getFieldValue ( const SIM_RawIndexField field,
const UT_Vector3I cell 
)

Definition at line 59 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::nodeToCellMap ( const UT_Vector3I node,
const int  cell_index 
)

Definition at line 270 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE UT_Vector3I SIM::FieldUtils::nodeToFaceMap ( const UT_Vector3I node,
const int  face_axis,
const int  face_index 
)

Definition at line 249 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE void SIM::FieldUtils::setFieldValue ( SIM_RawField field,
const UT_Vector3I cell,
fpreal32  value 
)

Definition at line 38 of file SIM_FieldUtils.h.

SYS_FORCE_INLINE void SIM::FieldUtils::setFieldValue ( SIM_RawIndexField field,
const UT_Vector3I cell,
exint  value 
)

Definition at line 52 of file SIM_FieldUtils.h.