23 #pragma warning(disable : 4146 26812 26451)
38 const std::vector< double >& init_coord,
53 _vkept = FEVV::Filters::VKEPT_POSITION::MIDPOINT;
60 unsigned int kept_int =
static_cast< unsigned int >(
_vkept);
61 file_encode << (kept_int) << std::endl;
62 unsigned int prediction_int =
static_cast< unsigned int >(
_pred);
63 file_encode << prediction_int << std::endl;
65 file_encode << quantif << std::endl;
67 for(
size_t i = 0; i < 3; i++)
71 for(
size_t i = 0; i < 3; i++)
81 std::string current_line;
82 getline(file_decode, current_line,
'\n');
85 getline(file_decode, current_line,
'\n');
87 std::stoi(current_line));
88 getline(file_decode, current_line,
'\n');
90 for(
size_t i = 0; i < 3; i++)
92 getline(file_decode, current_line,
'\n');
95 for(
size_t i = 0; i < 3; i++)
97 getline(file_decode, current_line,
'\n');
108 int vkept_position =
static_cast< int >(
_vkept);
109 int prediction_type =
static_cast< int >(
_pred);
110 draco::EncodeVarint(vkept_position, &buffer);
111 draco::EncodeVarint(prediction_type, &buffer);
120 std::list< char > file_buffer;
121 file_buffer.insert(file_buffer.begin(),
122 (buffer.buffer())->begin(),
123 (buffer.buffer())->end());
124 size_t size_header = file_buffer.size() * 8;
136 draco::DecodeVarint(&vk, &buffer);
139 draco::DecodeVarint(&pred, &buffer);
142 for(
size_t i = 0; i < 3; i++)
145 buffer.Decode(&curr);
148 for(
size_t i = 0; i < 3; i++)
151 buffer.Decode(&curr);