Blender V5.3
ply_import_data.cc File Reference
#include "ply_import_data.hh"
#include "ply_data.hh"
#include "ply_import_buffer.hh"
#include "BKE_anonymous_attribute_id.hh"
#include "BKE_attribute.hh"
#include "BLI_endian_switch.hh"
#include "BLI_string_ref.hh"
#include "fast_float.h"
#include <charconv>
#include "CLG_log.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::io
namespace  blender::io::ply

Functions

static bool blender::is_whitespace (char c)
static const char * blender::drop_whitespace (const char *p, const char *end)
static const char * blender::drop_non_whitespace (const char *p, const char *end)
static const char * blender::drop_plus (const char *p, const char *end)
static const char * blender::parse_int (const char *p, const char *end, int fallback, int &dst)
static void blender::endian_switch (uint8_t *ptr, int type_size)
static void blender::endian_switch_array (uint8_t *ptr, int type_size, int size)
static int blender::io::ply::get_index (const PlyElement &element, StringRef property)
template<typename T>
static const char * blender::io::ply::parse_ascii_value (const char *p, const char *end, T &dst)
template<typename T>
static const char * blender::io::ply::parse_row_ascii (PlyReadBuffer &file, const PlyElement &element, Vector< T > &r_values)
template<typename T, typename F>
static T blender::io::ply::float_to_value (const F value)
template<typename T>
static T blender::io::ply::get_binary_value (PlyDataTypes type, const uint8_t *&r_ptr)
template<typename T>
static const char * blender::io::ply::parse_row_binary (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, Vector< uint8_t > &r_scratch, Vector< T > &r_values)
static const char * blender::io::ply::load_vertex_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data)
static bool blender::io::ply::read_list_count (PlyReadBuffer &file, const PlyProperty &prop, Vector< uint8_t > &scratch, bool big_endian, uint32_t &r_count)
static bool blender::io::ply::read_list_values (PlyReadBuffer &file, const PlyProperty &prop, const uint32_t count, Vector< uint8_t > &scratch)
static bool blender::io::ply::skip_property (PlyReadBuffer &file, const PlyProperty &prop, Vector< uint8_t > &scratch, bool big_endian)
static const char * blender::io::ply::load_face_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data)
static const char * blender::io::ply::load_tristrips_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data)
static const char * blender::io::ply::load_edge_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data)
static const char * blender::io::ply::skip_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element)
std::unique_ptr< PlyData > blender::io::ply::import_ply_data (PlyReadBuffer &file, PlyHeader &header)

Variables

static CLG_LogRef blender::LOG = {"io.ply"}
static const int blender::io::ply::data_type_size [] = {0, 1, 1, 2, 2, 4, 4, 4, 8}
static const float blender::io::ply::data_type_normalizer []