|
Blender V5.0
|
Classes | |
| struct | uv_vertex_key |
| class | FileBuffer |
| class | FileBufferAscii |
| class | FileBufferBinary |
| class | PlyReadBuffer |
| struct | PlyCustomAttribute |
| struct | PlyData |
| struct | PlyProperty |
| struct | PlyElement |
| struct | PlyHeader |
| class | PLYExportTest |
| class | PLYExportPLYDataTest |
Enumerations | |
| enum | PlyDataTypes { NONE , CHAR , UCHAR , SHORT , USHORT , INT , UINT , FLOAT , DOUBLE , PLY_TYPE_COUNT } |
| enum | PlyFormatType { ASCII , BINARY_LE , BINARY_BE } |
Functions | |
| void | exporter_main (bContext *C, const PLYExportParams &export_params) |
| void | write_vertices (FileBuffer &buffer, const PlyData &ply_data) |
| void | write_faces (FileBuffer &buffer, const PlyData &ply_data) |
| void | write_edges (FileBuffer &buffer, const PlyData &ply_data) |
| void | write_header (FileBuffer &buffer, const PlyData &ply_data, const PLYExportParams &export_params) |
| static Mesh * | do_triangulation (const Mesh *mesh, bool force_triangulation) |
| static void | set_world_axes_transform (const Object &object, const eIOAxis forward, const eIOAxis up, float r_world_and_axes_transform[4][4], float r_world_and_axes_normal_transform[3][3]) |
| static void | generate_vertex_map (const Mesh *mesh, const PLYExportParams &export_params, Vector< int > &r_ply_to_vertex, Vector< int > &r_vertex_to_ply, Vector< int > &r_loop_to_ply, Vector< float2 > &r_uvs) |
| static float * | find_or_add_attribute (const StringRef name, int64_t size, uint32_t vertex_offset, Vector< PlyCustomAttribute > &r_attributes) |
| static void | load_custom_attributes (const Mesh *mesh, const Span< int > ply_to_vertex, uint32_t vertex_offset, Vector< PlyCustomAttribute > &r_attributes) |
| void | load_plydata (PlyData &plyData, Depsgraph *depsgraph, const PLYExportParams &export_params) |
| static bool | parse_keyword (Span< char > &str, StringRef keyword) |
| static Span< char > | parse_word (Span< char > &str) |
| static void | skip_space (Span< char > &str) |
| static PlyDataTypes | type_from_string (Span< char > word) |
| const char * | read_header (PlyReadBuffer &file, PlyHeader &r_header) |
| static Mesh * | read_ply_to_mesh (const PLYImportParams &import_params, const char *ob_name) |
| Mesh * | import_mesh (const PLYImportParams &import_params) |
| void | importer_main (bContext *C, const PLYImportParams &import_params) |
| void | importer_main (Main *bmain, Scene *scene, ViewLayer *view_layer, const PLYImportParams &import_params) |
| static int | get_index (const PlyElement &element, StringRef property) |
| static const char * | parse_row_ascii (PlyReadBuffer &file, Vector< float > &r_values) |
| template<typename T> | |
| static T | get_binary_value (PlyDataTypes type, const uint8_t *&r_ptr) |
| static const char * | parse_row_binary (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, Vector< uint8_t > &r_scratch, Vector< float > &r_values) |
| static const char * | load_vertex_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data) |
| static uint32_t | read_list_count (PlyReadBuffer &file, const PlyProperty &prop, Vector< uint8_t > &scratch, bool big_endian) |
| static void | skip_property (PlyReadBuffer &file, const PlyProperty &prop, Vector< uint8_t > &scratch, bool big_endian) |
| static const char * | load_face_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data) |
| static const char * | load_tristrips_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data) |
| static const char * | load_edge_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data) |
| static const char * | skip_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element) |
| std::unique_ptr< PlyData > | import_ply_data (PlyReadBuffer &file, PlyHeader &header) |
| Mesh * | convert_ply_to_mesh (PlyData &data, const PLYImportParams ¶ms) |
| static std::unique_ptr< PlyData > | load_cube (PLYExportParams ¶ms) |
| static std::string | read_temp_file_in_string (const std::string &file_path) |
| static char | read (std::ifstream &file) |
| static std::vector< char > | read_temp_file_in_vectorchar (const std::string &file_path) |
| TEST_F (PLYExportTest, WriteHeaderAscii) | |
| TEST_F (PLYExportTest, WriteHeaderBinary) | |
| TEST_F (PLYExportTest, WriteVerticesAscii) | |
| TEST_F (PLYExportTest, WriteVerticesBinary) | |
| TEST_F (PLYExportTest, WriteFacesAscii) | |
| TEST_F (PLYExportTest, WriteFacesBinary) | |
| TEST_F (PLYExportTest, WriteVertexNormalsAscii) | |
| TEST_F (PLYExportTest, WriteVertexNormalsBinary) | |
| TEST_F (PLYExportPLYDataTest, CubeLoadPLYData) | |
| TEST_F (PLYExportPLYDataTest, CubeLoadPLYDataUV) | |
| TEST_F (PLYExportPLYDataTest, CubeLooseEdgesLoadPLYData) | |
| TEST_F (PLYExportPLYDataTest, CubeLooseEdgesLoadPLYDataUV) | |
| TEST_F (PLYExportPLYDataTest, CubesVertexAttrs) | |
| TEST_F (PLYExportPLYDataTest, SuzanneLoadPLYDataUV) | |
| TEST (ply_import, BufferRefillTest) | |
Variables | |
| static const int | data_type_size [] = {0, 1, 1, 2, 2, 4, 4, 4, 8} |
| static const float | data_type_normalizer [] |
| const char *const | temp_file_path = "output\xc4\x84\xd0\x96.ply" |
| Enumerator | |
|---|---|
| NONE | |
| CHAR | |
| UCHAR | |
| SHORT | |
| USHORT | |
| INT | |
| UINT | |
| FLOAT | |
| DOUBLE | |
| PLY_TYPE_COUNT | |
Definition at line 20 of file ply_data.hh.
| Enumerator | |
|---|---|
| ASCII | |
| BINARY_LE | |
| BINARY_BE | |
Definition at line 40 of file ply_data.hh.
| Mesh * blender::io::ply::convert_ply_to_mesh | ( | PlyData & | data, |
| const PLYImportParams & | params ) |
Converts the PlyData data-structure to a mesh.
Definition at line 25 of file ply_import_mesh.cc.
References blender::bke::MutableAttributeAccessor::add(), BKE_id_attributes_active_color_set(), BKE_id_attributes_default_color_set(), BKE_id_free(), BKE_mesh_new_nomain(), BKE_mesh_validate(), CLOG_WARN, copy_v4_v4(), blender::bke::Corner, blender::io::ply::PlyCustomAttribute::data, data, blender::bke::SpanAttributeWriter< T >::finish(), blender::VArray< T >::from_span(), i, Mesh::id, LOG, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::mesh_calc_edges(), blender::geometry::mesh_merge_by_distance_all(), blender::bke::mesh_set_custom_normals_from_verts(), blender::bke::mesh_smooth_set(), blender::io::ply::PlyCustomAttribute::name, None, params, blender::bke::Point, size(), blender::bke::SpanAttributeWriter< T >::span, sRGB, srgb_to_linearrgb_v4(), v, v2, and Mesh::verts_num.
Referenced by read_ply_to_mesh().
Definition at line 37 of file ply_export_load_plydata.cc.
References BKE_mesh_from_bmesh_for_eval_nomain(), BKE_mesh_to_bmesh_ex(), BM_mesh_free(), BM_mesh_triangulate(), BMeshFromMeshParams::calc_face_normal, and BMeshFromMeshParams::calc_vert_normal.
Referenced by load_plydata().
| void blender::io::ply::exporter_main | ( | bContext * | C, |
| const PLYExportParams & | export_params ) |
Definition at line 31 of file ply_export.cc.
References PLYExportParams::ascii_format, BKE_libblock_find_name(), BKE_reportf(), BKE_scene_graph_evaluated_ensure(), C, CLOG_ERROR, PLYExportParams::collection, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DAG_EVAL_RENDER, DEG_graph_build_from_collection(), DEG_graph_free(), DEG_graph_new(), depsgraph, PLYExportParams::filepath, ID_GR, load_plydata(), LOG, PLYExportParams::reports, RPT_ERROR, write_edges(), write_faces(), write_header(), and write_vertices().
Referenced by PLY_export().
|
static |
Definition at line 155 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), name, and size().
Referenced by load_custom_attributes().
|
static |
Definition at line 89 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Geometry::attributes, CD_PROP_FLOAT2, blender::bke::Corner, Mesh::corner_data, Mesh::corners_num, CustomData_get_active_layer_name(), PLYExportParams::export_uv, blender::Span< T >::is_empty(), blender::StringRefBase::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::ply::uv_vertex_key::uv, blender::io::ply::uv_vertex_key::vertex_index, and Mesh::verts_num.
Referenced by load_plydata().
|
static |
Definition at line 152 of file ply_import_data.cc.
References BLI_assert_msg, CHAR, DOUBLE, FLOAT, INT, NONE, SHORT, T, UCHAR, UINT, and USHORT.
Referenced by load_face_element(), load_tristrips_element(), parse_row_binary(), and read_list_count().
|
static |
Definition at line 122 of file ply_import_data.cc.
References element, i, and blender::io::ply::PlyProperty::name.
Referenced by load_edge_element(), load_face_element(), and load_vertex_element().
| Mesh * blender::io::ply::import_mesh | ( | const PLYImportParams & | import_params | ) |
Definition at line 200 of file ply_import.cc.
References BLI_path_basename(), BLI_path_extension_strip(), FILE_MAX, PLYImportParams::filepath, read_ply_to_mesh(), and STRNCPY().
Referenced by PLY_import_mesh().
| std::unique_ptr< PlyData > blender::io::ply::import_ply_data | ( | PlyReadBuffer & | file, |
| PlyHeader & | header ) |
Loads the information from a PLY file to a PlyData data-structure.
| file | The PLY file that was opened. |
| header | The information in the PLY header. |
Definition at line 644 of file ply_import_data.cc.
References data, element, blender::io::ply::PlyHeader::elements, error(), load_edge_element(), load_face_element(), load_tristrips_element(), load_vertex_element(), and skip_element().
Referenced by read_ply_to_mesh(), and TEST().
| void blender::io::ply::importer_main | ( | bContext * | C, |
| const PLYImportParams & | import_params ) |
Definition at line 211 of file ply_import.cc.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), and importer_main().
Referenced by importer_main(), and PLY_import().
| void blender::io::ply::importer_main | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| const PLYImportParams & | import_params ) |
Definition at line 219 of file ply_import.cc.
References BKE_collection_object_add(), BKE_layer_collection_get_active(), BKE_mesh_add(), BKE_mesh_nomain_to_mesh(), BKE_object_add_only_object(), BKE_object_apply_mat4(), BKE_view_layer_base_deselect_all(), BKE_view_layer_base_find(), BKE_view_layer_base_select_and_set_active(), BKE_view_layer_synced_ensure(), BLI_path_basename(), BLI_path_extension_strip(), LayerCollection::collection, copy_m4_m3(), DEG_id_tag_update(), DEG_id_tag_update_ex(), DEG_relations_tag_update(), FILE_MAX, PLYImportParams::filepath, PLYImportParams::forward_axis, PLYImportParams::global_scale, Collection::id, Scene::id, ID_RECALC_ANIMATION, ID_RECALC_BASE_FLAGS, ID_RECALC_GEOMETRY, ID_RECALC_SYNC_TO_EVAL, ID_RECALC_TRANSFORM, IO_AXIS_Y, IO_AXIS_Z, mat3_from_axis_conversion(), OB_MESH, read_ply_to_mesh(), rescale_m4(), UnitSettings::scale_length, STRNCPY(), UnitSettings::system, Scene::unit, unit_m3(), unit_m4(), PLYImportParams::up_axis, PLYImportParams::use_scene_unit, and USER_UNIT_NONE.
|
static |
|
static |
Definition at line 173 of file ply_export_load_plydata.cc.
References Mesh::active_color_attribute, blender::bke::attribute_name_is_anonymous(), Geometry::attributes, BLI_assert_msg, blender::bke::Bool, CD_PROP_FLOAT2, col, blender::bke::ColorByte, blender::bke::ColorFloat, Mesh::corner_data, CustomData_get_active_layer_name(), blender::bke::AttributeIter::data_type, blender::color::decode(), blender::bke::AttributeIter::domain, ELEM, find_or_add_attribute(), blender::bke::Float, blender::bke::Float2, blender::bke::Float3, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), i, blender::Span< T >::index_range(), blender::bke::Int16_2D, blender::bke::Int32, blender::bke::Int32_2D, blender::bke::Int8, blender::GSpan::is_empty(), blender::bke::AttributeIter::name, blender::bke::Point, blender::bke::Quaternion, blender::Span< T >::size(), size(), and blender::GSpan::typed().
Referenced by load_plydata().
|
static |
Definition at line 586 of file ply_import_data.cc.
References ASCII, data, element, error(), get_index(), i, parse_row_ascii(), parse_row_binary(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data().
|
static |
Definition at line 392 of file ply_import_data.cc.
References ASCII, BINARY_BE, CLOG_WARN, count, blender::io::ply::PlyProperty::count_type, blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, data_type_size, blender::io::drop_non_whitespace(), blender::io::drop_whitespace(), element, endian_switch_array(), get_binary_value(), get_index(), i, LOG, NONE, blender::io::parse_int(), ptr, blender::io::ply::PlyReadBuffer::read_bytes(), blender::io::ply::PlyReadBuffer::read_line(), read_list_count(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), skip_property(), blender::io::ply::PlyHeader::type, and blender::io::ply::PlyProperty::type.
Referenced by import_ply_data().
| void blender::io::ply::load_plydata | ( | PlyData & | plyData, |
| Depsgraph * | depsgraph, | ||
| const PLYExportParams & | export_params ) |
Definition at line 326 of file ply_export_load_plydata.cc.
References Mesh::active_color_attribute, Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), Vector< T, InlineBufferCapacity, Allocator >::append_unchecked(), PLYExportParams::apply_modifiers, Geometry::attributes, BASE_SELECTED, BKE_id_free(), BKE_mesh_wrapper_ensure_mdata(), BKE_object_get_evaluated_mesh(), BKE_object_get_pre_modified_mesh(), BLI_assert, Mesh::corners_num, blender::bke::LooseGeomCache::count, blender::io::ply::PlyCustomAttribute::data, DEG_get_evaluated(), DEG_ITER_OBJECT_FLAG_DUPLI, DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY, DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET, DEG_ITER_OBJECT_FLAG_VISIBLE, DEG_OBJECT_ITER_BEGIN, DEG_OBJECT_ITER_END, DEGObjectIterSettings::depsgraph, depsgraph, do_triangulation(), blender::io::ply::PlyData::edges, PLYExportParams::export_attributes, PLYExportParams::export_normals, PLYExportParams::export_selected_objects, PLYExportParams::export_triangulated_mesh, blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, faces, Mesh::faces_num, DEGObjectIterSettings::flags, PLYExportParams::forward_axis, generate_vertex_map(), PLYExportParams::global_scale, i, blender::VArrayCommon< T >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::LooseGeomCache::is_loose_bits, linearrgb_to_srgb_v4(), load_custom_attributes(), blender::bke::AttributeAccessor::lookup_or_default(), mul_m3_v3(), mul_m4_v3(), mul_v3_fl(), name, None, normalize_v3(), OB_MESH, blender::bke::Point, pos, Vector< T, InlineBufferCapacity, Allocator >::reserve(), Vector< T, InlineBufferCapacity, Allocator >::resize(), set_world_axes_transform(), blender::IndexRange::size(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), size(), Vector< T, InlineBufferCapacity, Allocator >::size(), sRGB, PLYExportParams::up_axis, blender::io::ply::PlyData::uv_coordinates, blender::io::ply::PlyData::vertex_colors, PLYExportParams::vertex_colors, blender::io::ply::PlyData::vertex_custom_attr, blender::io::ply::PlyData::vertex_normals, and blender::io::ply::PlyData::vertices.
Referenced by exporter_main(), and blender::io::ply::PLYExportPLYDataTest::load_ply_data_from_blendfile().
|
static |
Definition at line 507 of file ply_import_data.cc.
References ASCII, b, BINARY_BE, count, blender::io::ply::PlyProperty::count_type, blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, data_type_size, element, endian_switch_array(), get_binary_value(), i, NONE, blender::io::parse_int(), ptr, blender::io::ply::PlyReadBuffer::read_bytes(), blender::io::ply::PlyReadBuffer::read_line(), read_list_count(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::ply::PlyHeader::type, and blender::io::ply::PlyProperty::type.
Referenced by import_ply_data().
|
static |
Definition at line 235 of file ply_import_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ASCII, data, data_type_normalizer, ELEM, element, error(), get_index(), i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::io::ply::PlyProperty::name, parse_row_ascii(), parse_row_binary(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data().
Definition at line 39 of file ply_import.cc.
References blender::StringRefBase::data(), blender::StringRefBase::size(), and str.
Referenced by read_header().
|
static |
Definition at line 133 of file ply_import_data.cc.
References blender::Span< T >::data(), blender::Span< T >::is_empty(), blender::io::parse_float(), blender::io::ply::PlyReadBuffer::read_line(), blender::Span< T >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by load_edge_element(), and load_vertex_element().
|
static |
Definition at line 196 of file ply_import_data.cc.
References BINARY_BE, BINARY_LE, BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, element, endian_switch(), get_binary_value(), i, ptr, blender::io::ply::PlyReadBuffer::read_bytes(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::ply::PlyHeader::type, and blender::io::ply::PlyProperty::type.
Referenced by load_edge_element(), and load_vertex_element().
|
static |
Definition at line 113 of file io_ply_exporter_test.cc.
| const char * blender::io::ply::read_header | ( | PlyReadBuffer & | file, |
| PlyHeader & | r_header ) |
Definition at line 100 of file ply_import.cc.
References blender::io::ply::PlyReadBuffer::after_header(), ASCII, BINARY_BE, BINARY_LE, blender::io::ply::PlyElement::calc_stride(), blender::Span< T >::data(), element, blender::io::ply::PlyHeader::elements, blender::Span< T >::first(), blender::Span< T >::is_empty(), parse_keyword(), parse_word(), blender::io::ply::PlyReadBuffer::read_line(), blender::Span< T >::size(), skip_space(), blender::io::ply::PlyHeader::type, and type_from_string().
Referenced by read_ply_to_mesh(), and TEST().
|
static |
Definition at line 361 of file ply_import_data.cc.
References count, blender::io::ply::PlyProperty::count_type, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, endian_switch(), get_binary_value(), ptr, blender::io::ply::PlyReadBuffer::read_bytes(), and blender::Vector< T, InlineBufferCapacity, Allocator >::resize().
Referenced by load_face_element(), load_tristrips_element(), and skip_property().
|
static |
Definition at line 166 of file ply_import.cc.
References BKE_report(), BKE_reportf(), CLOG_ERROR, convert_ply_to_mesh(), data, PLYImportParams::filepath, import_ply_data(), LOG, read_header(), PLYImportParams::reports, and RPT_ERROR.
Referenced by import_mesh(), and importer_main().
|
static |
Definition at line 101 of file io_ply_exporter_test.cc.
References BLI_file_read_text_as_mem(), and MEM_freeN().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
|
static |
Definition at line 52 of file ply_export_load_plydata.cc.
References copy_m3_m4(), invert_m3_m3(), IO_AXIS_Y, IO_AXIS_Z, mat3_from_axis_conversion(), mul_m4_m3m4(), mul_v3_m3v3(), ptr, transpose_m3(), and unit_m3().
Referenced by load_plydata().
|
static |
Definition at line 623 of file ply_import_data.cc.
References ASCII, BINARY_BE, element, i, blender::io::ply::PlyReadBuffer::read_line(), skip_property(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data().
|
static |
Definition at line 376 of file ply_import_data.cc.
References count, blender::io::ply::PlyProperty::count_type, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, NONE, blender::io::ply::PlyReadBuffer::read_bytes(), read_list_count(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::io::ply::PlyProperty::type.
Referenced by load_face_element(), and skip_element().
|
static |
| blender::io::ply::TEST | ( | ply_import | , |
| BufferRefillTest | ) |
Definition at line 23 of file io_ply_importer_test.cc.
References CLOG_ERROR, import_ply_data(), LOG, read_header(), and SEP_STR.
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| CubeLoadPLYData | ) |
Definition at line 435 of file io_ply_exporter_test.cc.
References EXPECT_EQ(), params, blender::io::ply::PlyData::uv_coordinates, and blender::io::ply::PlyData::vertices.
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| CubeLoadPLYDataUV | ) |
Definition at line 444 of file io_ply_exporter_test.cc.
References EXPECT_EQ(), params, blender::io::ply::PlyData::uv_coordinates, and blender::io::ply::PlyData::vertices.
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| CubeLooseEdgesLoadPLYData | ) |
Definition at line 453 of file io_ply_exporter_test.cc.
References ARRAY_SIZE, Vector< T, InlineBufferCapacity, Allocator >::data(), blender::io::ply::PlyData::edges, EXPECT_EQ(), blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, IO_AXIS_Y, IO_AXIS_Z, params, Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::ply::PlyData::uv_coordinates, and blender::io::ply::PlyData::vertices.
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| CubeLooseEdgesLoadPLYDataUV | ) |
Definition at line 485 of file io_ply_exporter_test.cc.
References ARRAY_SIZE, Vector< T, InlineBufferCapacity, Allocator >::data(), blender::io::ply::PlyData::edges, EXPECT_EQ(), blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, IO_AXIS_Y, IO_AXIS_Z, params, Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::ply::PlyData::uv_coordinates, and blender::io::ply::PlyData::vertices.
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| CubesVertexAttrs | ) |
Definition at line 531 of file io_ply_exporter_test.cc.
References EXPECT_EQ(), params, blender::io::ply::PlyData::vertex_custom_attr, and blender::io::ply::PlyData::vertices.
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| SuzanneLoadPLYDataUV | ) |
Definition at line 543 of file io_ply_exporter_test.cc.
References EXPECT_EQ(), params, and blender::io::ply::PlyData::uv_coordinates.
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteFacesAscii | ) |
Definition at line 280 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, PLYExportParams::export_normals, PLYExportParams::filepath, load_cube(), None, read_temp_file_in_string(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_faces().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteFacesBinary | ) |
Definition at line 310 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, PLYExportParams::export_normals, PLYExportParams::filepath, i, load_cube(), None, read_temp_file_in_vectorchar(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_faces().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteHeaderAscii | ) |
Definition at line 136 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, BKE_blender_version_string(), PLYExportParams::export_normals, PLYExportParams::filepath, load_cube(), None, read_temp_file_in_string(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_header().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteHeaderBinary | ) |
Definition at line 174 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, BKE_blender_version_string(), PLYExportParams::export_normals, PLYExportParams::filepath, load_cube(), None, read_temp_file_in_string(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_header().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteVertexNormalsAscii | ) |
Definition at line 346 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, PLYExportParams::export_normals, PLYExportParams::filepath, load_cube(), None, read_temp_file_in_string(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_vertices().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteVertexNormalsBinary | ) |
Definition at line 378 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, PLYExportParams::export_normals, PLYExportParams::filepath, i, load_cube(), None, read_temp_file_in_vectorchar(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_vertices().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteVerticesAscii | ) |
Definition at line 212 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, PLYExportParams::export_normals, PLYExportParams::filepath, load_cube(), None, read_temp_file_in_string(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_vertices().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteVerticesBinary | ) |
Definition at line 244 of file io_ply_exporter_test.cc.
References PLYExportParams::ascii_format, PLYExportParams::export_normals, PLYExportParams::filepath, i, load_cube(), None, read_temp_file_in_vectorchar(), result, STRNCPY(), temp_file_path, PLYExportParams::vertex_colors, and write_vertices().
|
static |
Definition at line 70 of file ply_import.cc.
References CHAR, blender::Span< T >::data(), DOUBLE, ELEM, FLOAT, input, INT, NONE, SHORT, blender::Span< T >::size(), UCHAR, UINT, and USHORT.
Referenced by read_header().
| void blender::io::ply::write_edges | ( | FileBuffer & | buffer, |
| const PlyData & | ply_data ) |
Definition at line 56 of file ply_export_data.cc.
References blender::io::ply::PlyData::edges, blender::io::ply::FileBuffer::write_edge(), and blender::io::ply::FileBuffer::write_to_file().
Referenced by exporter_main().
| void blender::io::ply::write_faces | ( | FileBuffer & | buffer, |
| const PlyData & | ply_data ) |
Definition at line 47 of file ply_export_data.cc.
References Vector< T, InlineBufferCapacity, Allocator >::data(), blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, indices, blender::io::ply::FileBuffer::write_face(), and blender::io::ply::FileBuffer::write_to_file().
Referenced by exporter_main(), TEST_F(), and TEST_F().
| void blender::io::ply::write_header | ( | FileBuffer & | buffer, |
| const PlyData & | ply_data, | ||
| const PLYExportParams & | export_params ) |
Definition at line 18 of file ply_export_header.cc.
References PLYExportParams::ascii_format, BKE_blender_version_string(), blender::io::ply::PlyData::edges, blender::io::ply::PlyData::face_sizes, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::io::ply::PlyCustomAttribute::name, Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::ply::PlyData::uv_coordinates, blender::io::ply::PlyData::vertex_colors, blender::io::ply::PlyData::vertex_custom_attr, blender::io::ply::PlyData::vertex_normals, blender::io::ply::PlyData::vertices, blender::io::ply::FileBuffer::write_header_element(), blender::io::ply::FileBuffer::write_header_list_property(), blender::io::ply::FileBuffer::write_header_scalar_property(), blender::io::ply::FileBuffer::write_string(), and blender::io::ply::FileBuffer::write_to_file().
Referenced by exporter_main(), TEST_F(), and TEST_F().
| void blender::io::ply::write_vertices | ( | FileBuffer & | buffer, |
| const PlyData & | ply_data ) |
Definition at line 17 of file ply_export_data.cc.
References blender::math::clamp(), blender::io::ply::PlyCustomAttribute::data, i, blender::io::ply::PlyData::uv_coordinates, blender::io::ply::PlyData::vertex_colors, blender::io::ply::PlyData::vertex_custom_attr, blender::io::ply::PlyData::vertex_normals, blender::io::ply::PlyData::vertices, blender::io::ply::FileBuffer::write_data(), blender::io::ply::FileBuffer::write_to_file(), blender::io::ply::FileBuffer::write_UV(), blender::io::ply::FileBuffer::write_vertex(), blender::io::ply::FileBuffer::write_vertex_color(), blender::io::ply::FileBuffer::write_vertex_end(), and blender::io::ply::FileBuffer::write_vertex_normal().
Referenced by exporter_main(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 105 of file ply_import_data.cc.
Referenced by load_vertex_element().
|
static |
Definition at line 102 of file ply_import_data.cc.
Referenced by blender::io::ply::PlyElement::calc_stride(), load_face_element(), load_tristrips_element(), parse_row_binary(), read_list_count(), and skip_property().