47#define M(T) return f( *( const T* )( c ) );
72 return f( *((
const float*)c + 3 ) );
#define MRMESH_API
Definition MRMeshFwd.h:85
#define MR_UNREACHABLE
Definition MRMeshFwd.h:863
ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:14
MinMax< double > MinMaxd
Definition MRMeshFwd.h:417
MinMaxd getScalarTypeMinMax(ScalarType scalarType)
returns the minimal and the maximal values of given type, or zeros for ScalarType::Unknown
std::function< float(const char *)> getTypeConverter(ScalarType scalarType, const MinMaxd &range)
std::invoke_result_t< F, int > visitScalarType(F &&f, ScalarType scalarType, const char *c)
More general template to pass a single value of specified format scalarType to a generic function f.
Definition MRScalarConvert.h:45
size_t getScalarTypeSize(ScalarType scalarType)
returns the size in bytes of a value of given type, or 0 for ScalarType::Unknown
@ Count
Definition MRPdf.h:42
@ Float32
Definition MRScalarConvert.h:23
@ Int16
Definition MRScalarConvert.h:18
@ Float32_4
the last value from float[4]
Definition MRScalarConvert.h:25
@ Int8
Definition MRScalarConvert.h:16
@ Unknown
Definition MRScalarConvert.h:26
@ UInt16
Definition MRScalarConvert.h:17
@ UInt64
Definition MRScalarConvert.h:21
@ UInt8
Definition MRScalarConvert.h:15
@ Int32
Definition MRScalarConvert.h:20
@ Float64
Definition MRScalarConvert.h:24
@ UInt32
Definition MRScalarConvert.h:19
@ Count
Definition MRScalarConvert.h:27
@ Int64
Definition MRScalarConvert.h:22
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8