|
Blender V4.3
|
Classes | |
| struct | Expectation |
| class | FileBuffer |
| class | FileBufferAscii |
| class | FileBufferBinary |
| struct | PlyCustomAttribute |
| struct | PlyData |
| struct | PlyElement |
| class | PLYExportPLYDataTest |
| class | PLYExportTest |
| struct | PlyHeader |
| class | PLYImportTest |
| struct | PlyProperty |
| class | PlyReadBuffer |
| struct | uv_vertex_key |
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_F (PLYImportTest, PLYImportCube) | |
| TEST_F (PLYImportTest, PLYImportWireframeCube) | |
| TEST_F (PLYImportTest, PlyImportBinaryDataStartsWithLF) | |
| TEST_F (PLYImportTest, PLYImportBunny) | |
| TEST_F (PLYImportTest, PlyImportManySmallHoles) | |
| TEST_F (PLYImportTest, PlyImportColorNotFull) | |
| TEST_F (PLYImportTest, PlyImportCustomDataElements) | |
| TEST_F (PLYImportTest, PlyImportDoubleXYZ) | |
| TEST_F (PLYImportTest, PlyImportFaceIndicesNotFirstProp) | |
| TEST_F (PLYImportTest, PlyImportFaceIndicesPrecededByList) | |
| TEST_F (PLYImportTest, PlyImportFaceUVsColors) | |
| TEST_F (PLYImportTest, PlyImportFacesFirst) | |
| TEST_F (PLYImportTest, PlyImportFloatFormats) | |
| TEST_F (PLYImportTest, PlyImportPositionNotFull) | |
| TEST_F (PLYImportTest, PlyImportTristrips) | |
| TEST_F (PLYImportTest, PlyImportTypeAliases) | |
| TEST_F (PLYImportTest, PlyImportVertexCompOrder) | |
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 23 of file ply_import_mesh.cc.
References BKE_id_attributes_active_color_set(), BKE_id_attributes_default_color_set(), BKE_id_free(), BKE_mesh_new_nomain(), BKE_mesh_set_custom_normals_from_verts(), BKE_mesh_validate(), copy_v4_v4(), blender::bke::Corner, blender::bke::SpanAttributeWriter< T >::finish(), blender::MutableSpan< T >::first(), mesh, blender::bke::mesh_calc_edges(), blender::geometry::mesh_merge_by_distance_all(), blender::bke::mesh_smooth_set(), params, PLY_VERTEX_COLOR_NONE, PLY_VERTEX_COLOR_SRGB, blender::bke::Point, size(), blender::bke::SpanAttributeWriter< T >::span, srgb_to_linearrgb_v4(), v, and v2.
Referenced by read_ply_to_mesh().
|
static |
Definition at line 36 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(), and BMeshFromMeshParams::calc_face_normal.
Referenced by load_plydata().
| void blender::io::ply::exporter_main | ( | bContext * | C, |
| const PLYExportParams & | export_params ) |
Definition at line 30 of file ply_export.cc.
References PLYExportParams::ascii_format, BKE_libblock_find_name(), BKE_reportf(), BKE_scene_graph_evaluated_ensure(), 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(), PLYExportParams::reports, RPT_ERROR, write_edges(), write_faces(), write_header(), and write_vertices().
Referenced by PLY_export().
|
static |
Definition at line 154 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, and blender::Vector< T, InlineBufferCapacity, Allocator >::last().
Referenced by load_custom_attributes().
|
static |
Definition at line 88 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), CD_PROP_FLOAT2, blender::bke::Corner, CustomData_get_active_layer_name(), PLYExportParams::export_uv, int, blender::Span< T >::is_empty(), blender::StringRefBase::is_empty(), 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(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by load_plydata().
|
static |
Definition at line 149 of file ply_import_data.cc.
References BLI_assert_msg, CHAR, DOUBLE, FLOAT, INT, NONE, SHORT, UCHAR, UINT, and USHORT.
Referenced by load_face_element(), load_tristrips_element(), parse_row_binary(), and read_list_count().
|
static |
Definition at line 119 of file ply_import_data.cc.
References 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 198 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 640 of file ply_import_data.cc.
References data, blender::io::ply::PlyHeader::elements, error(), load_edge_element(), load_face_element(), load_tristrips_element(), load_vertex_element(), and skip_element().
Referenced by blender::io::ply::PLYImportTest::import_and_check(), and read_ply_to_mesh().
| void blender::io::ply::importer_main | ( | bContext * | C, |
| const PLYImportParams & | import_params ) |
Definition at line 209 of file ply_import.cc.
References 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 217 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(), Object::data, 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, Object::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(), STRNCPY, unit_m3(), unit_m4(), PLYImportParams::up_axis, PLYImportParams::use_scene_unit, and USER_UNIT_NONE.
|
static |
|
static |
Definition at line 172 of file ply_export_load_plydata.cc.
References blender::bke::attribute_name_is_anonymous(), BLI_assert_msg, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT32_2D, CD_PROP_INT8, CD_PROP_QUATERNION, col, CustomData_get_active_layer_name(), blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, ELEM, find_or_add_attribute(), blender::bke::AttributeIter::get(), blender::Span< T >::index_range(), blender::bke::AttributeIter::name, blender::bke::Point, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, and blender::Span< T >::size().
Referenced by load_plydata().
|
static |
Definition at line 582 of file ply_import_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ASCII, error(), get_index(), 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 388 of file ply_import_data.cc.
References ASCII, BINARY_BE, count, blender::io::ply::PlyProperty::count_type, blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, drop_non_whitespace(), drop_whitespace(), endian_switch_array(), get_binary_value(), get_index(), NONE, parse_int(), ptr, read_list_count(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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 314 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_unchecked(), PLYExportParams::apply_modifiers, BASE_SELECTED, BKE_id_free(), BKE_mesh_wrapper_ensure_mdata(), BKE_object_get_evaluated_mesh(), BKE_object_get_pre_modified_mesh(), BLI_assert, blender::bke::LooseGeomCache::count, DEG_get_evaluated_object(), 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, PLYExportParams::forward_axis, generate_vertex_map(), PLYExportParams::global_scale, int, 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(), mul_m3_v3(), mul_m4_v3(), mul_v3_fl(), normalize_v3(), OB_MESH, PLY_VERTEX_COLOR_NONE, PLY_VERTEX_COLOR_SRGB, blender::bke::Point, pos, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), set_world_axes_transform(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), size(), 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 503 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_type_size, endian_switch_array(), get_binary_value(), NONE, parse_int(), ptr, read_list_count(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), 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 232 of file ply_import_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ASCII, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_normalizer, ELEM, error(), get_index(), 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 37 of file ply_import.cc.
References blender::StringRefBase::data(), blender::StringRefBase::size(), and str.
Referenced by read_header().
|
static |
Definition at line 130 of file ply_import_data.cc.
References blender::Span< T >::data(), parse_float(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by load_edge_element(), and load_vertex_element().
|
static |
Definition at line 193 of file ply_import_data.cc.
References BINARY_BE, BINARY_LE, BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, endian_switch(), get_binary_value(), ptr, 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.
Referenced by read_temp_file_in_vectorchar().
| const char * blender::io::ply::read_header | ( | PlyReadBuffer & | file, |
| PlyHeader & | r_header ) |
Definition at line 98 of file ply_import.cc.
References ASCII, BINARY_BE, BINARY_LE, blender::Span< T >::data(), element, blender::io::ply::PlyHeader::elements, parse_keyword(), parse_word(), blender::Span< T >::size(), skip_space(), blender::io::ply::PlyHeader::type, and type_from_string().
Referenced by blender::io::ply::PLYImportTest::import_and_check(), and read_ply_to_mesh().
|
static |
Definition at line 357 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, and blender::Vector< T, InlineBufferCapacity, Allocator >::resize().
Referenced by load_face_element(), load_tristrips_element(), and skip_property().
|
static |
Definition at line 164 of file ply_import.cc.
References BKE_report(), BKE_reportf(), convert_ply_to_mesh(), file, PLYImportParams::filepath, import_ply_data(), 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 51 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 619 of file ply_import_data.cc.
References ASCII, BINARY_BE, skip_property(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data().
|
static |
Definition at line 372 of file ply_import_data.cc.
References count, blender::io::ply::PlyProperty::count_type, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, NONE, 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 |
Definition at line 61 of file ply_import.cc.
References blender::Span< T >::drop_front(), and str.
Referenced by read_header().
| 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 443 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 452 of file io_ply_exporter_test.cc.
References ARRAY_SIZE, blender::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, blender::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 483 of file io_ply_exporter_test.cc.
References ARRAY_SIZE, blender::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, blender::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 529 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 541 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(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_string(), 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, load_cube(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_vectorchar(), 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(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_string(), 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(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_string(), 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(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_string(), 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, load_cube(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_vectorchar(), 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(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_string(), 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, load_cube(), PLY_VERTEX_COLOR_NONE, read_temp_file_in_vectorchar(), STRNCPY, temp_file_path, PLYExportParams::vertex_colors, and write_vertices().
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportBinaryDataStartsWithLF | ) |
Definition at line 116 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PLYImportBunny | ) |
Definition at line 123 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportColorNotFull | ) |
Definition at line 152 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PLYImportCube | ) |
Definition at line 93 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportCustomDataElements | ) |
Definition at line 159 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportDoubleXYZ | ) |
Definition at line 175 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportFaceIndicesNotFirstProp | ) |
Definition at line 192 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportFaceIndicesPrecededByList | ) |
Definition at line 199 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportFacesFirst | ) |
Definition at line 213 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportFaceUVsColors | ) |
Definition at line 206 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportFloatFormats | ) |
Definition at line 230 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportManySmallHoles | ) |
Definition at line 136 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportPositionNotFull | ) |
Definition at line 247 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportTristrips | ) |
Definition at line 254 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportTypeAliases | ) |
Definition at line 261 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PlyImportVertexCompOrder | ) |
Definition at line 279 of file io_ply_importer_test.cc.
| blender::io::ply::TEST_F | ( | PLYImportTest | , |
| PLYImportWireframeCube | ) |
Definition at line 109 of file io_ply_importer_test.cc.
|
static |
Definition at line 68 of file ply_import.cc.
References CHAR, blender::Span< T >::data(), DOUBLE, ELEM, FLOAT, 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 blender::Vector< T, InlineBufferCapacity, Allocator >::data(), blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, 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, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::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::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 102 of file ply_import_data.cc.
Referenced by load_vertex_element().
|
static |
Definition at line 99 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().