|
Blender V5.3
|
Classes | |
| class | FileBuffer |
| class | FileBufferAscii |
| class | FileBufferBinary |
| class | GsplatPlyDataBuilder |
| class | io_ply_import_gsplat |
| struct | PlyCustomAttribute |
| struct | PlyData |
| struct | PlyElement |
| class | PLYExportPLYDataTest |
| class | PLYExportTest |
| struct | PlyHeader |
| 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 void | report_exception (const PLYImportParams &import_params, const StringRefNull ob_name, const std::exception &ex) |
| static std::unique_ptr< PlyData > | read_ply_to_data (const PLYImportParams &import_params, const StringRefNull ob_name) |
| static bool | is_data_gaussian_splat (const PlyData &data) |
| static std::string | get_datablock_name (const StringRefNull filepath) |
| Mesh * | import_mesh (const PLYImportParams &import_params) |
| PointCloud * | import_point_cloud (const PLYImportParams &import_params) |
| bke::GeometrySet | import_geometry_set (const PLYImportParams &import_params) |
| void | importer_main (bContext *C, const PLYImportParams &import_params) |
| static void | importer_main_impl (Main *bmain, Scene *scene, ViewLayer *view_layer, const PLYImportParams &import_params, const std::string &datablock_name) |
| void | importer_main (Main *bmain, Scene *scene, ViewLayer *view_layer, const PLYImportParams &import_params) |
| static int | get_index (const PlyElement &element, StringRef property) |
| template<typename T> | |
| static const char * | parse_ascii_value (const char *p, const char *end, T &dst) |
| template<typename T> | |
| static const char * | parse_row_ascii (PlyReadBuffer &file, const PlyElement &element, Vector< T > &r_values) |
| template<typename T, typename F> | |
| static T | float_to_value (const F value) |
| template<typename T> | |
| static T | get_binary_value (PlyDataTypes type, const uint8_t *&r_ptr) |
| template<typename T> | |
| static const char * | parse_row_binary (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, Vector< uint8_t > &r_scratch, Vector< T > &r_values) |
| static const char * | load_vertex_element (PlyReadBuffer &file, const PlyHeader &header, const PlyElement &element, PlyData *data) |
| static bool | read_list_count (PlyReadBuffer &file, const PlyProperty &prop, Vector< uint8_t > &scratch, bool big_endian, uint32_t &r_count) |
| static bool | read_list_values (PlyReadBuffer &file, const PlyProperty &prop, const uint32_t count, Vector< uint8_t > &scratch) |
| static bool | 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) |
| static std::optional< Span< float > > | find_custom_attribute (const PlyData &data, const StringRefNull name) |
| static Vector< Span< float > > | get_rest_custom_attributes (const PlyData &data) |
| static bool | is_builtin_gsplat_attribute (StringRefNull name) |
| PointCloud * | convert_gsplat_ply_to_point_cloud (const PlyData &data, const PLYImportParams ¶ms) |
| 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 (io_ply_import_gsplat, missing_required_attributes) | |
| TEST_F (io_ply_import_gsplat, basic_attributes) | |
| TEST_F (io_ply_import_gsplat, canonical_counts_import_all_coefficients) | |
| TEST_F (io_ply_import_gsplat, non_canonical_count_keeps_channels) | |
| TEST_F (io_ply_import_gsplat, mid_band_count_keeps_channels) | |
| TEST_F (io_ply_import_gsplat, count_not_multiple_of_three_drops_sh) | |
| TEST_F (io_ply_import_gsplat, above_max_degree_drops_sh) | |
| 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 [] |
| constexpr int | MAX_SH_DEGREE = 4 |
| constexpr int | MAX_REST_ATTRIBUTES = 24 * 3 |
| 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 43 of file ply_data.hh.
| PointCloud * blender::io::ply::convert_gsplat_ply_to_point_cloud | ( | const PlyData & | data, |
| const PLYImportParams & | params ) |
Converts the PlyData data-structure to a point cloud that represents gsplat.
NOTE: PlyData must represent gaussian splat (contain all related attributes).
Definition at line 80 of file ply_import_gsplat.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::BKE_id_free(), blender::BKE_pointcloud_new_nomain(), blender::BKE_reportf(), BLI_SCOPED_DEFER, convert_gsplat_ply_to_point_cloud(), blender::data, blender::io::ply::PlyCustomAttribute::data, blender::io::gsplat::OriginalActivationFunctions::decode_opacity(), blender::io::gsplat::OriginalActivationFunctions::decode_scale(), blender::io::gsplat::degree_for_dimension(), blender::io::gsplat::dimension_for_degree(), find_custom_attribute(), blender::io::gsplat::GsplatMutableAttributeAccessor::finish(), blender::VArray< T >::from_span(), get_rest_custom_attributes(), blender::GSplat, blender::PLYImportParams::import_attributes, is_builtin_gsplat_attribute(), MAX_REST_ATTRIBUTES, MAX_SH_DEGREE, blender::io::ply::PlyCustomAttribute::name, blender::math::normalize(), blender::bke::Point, blender::io::gsplat::GsplatMutableAttributeAccessor::radiance_base_for_write(), blender::PLYImportParams::reports, blender::io::gsplat::GsplatMutableAttributeAccessor::rotations_for_write(), blender::RPT_WARNING, scale(), blender::io::gsplat::GsplatMutableAttributeAccessor::scales_for_write(), blender::io::gsplat::GsplatMutableAttributeAccessor::sh_for_write(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::validate::size_fits_in_int(), and w().
Referenced by convert_gsplat_ply_to_point_cloud(), import_geometry_set(), import_point_cloud(), importer_main_impl(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| Mesh * blender::io::ply::convert_ply_to_mesh | ( | PlyData & | data, |
| const PLYImportParams & | params ) |
Converts the PlyData data-structure to a mesh.
Definition at line 35 of file ply_import_mesh.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::BKE_id_attributes_active_color_set(), blender::BKE_id_attributes_default_color_set(), blender::BKE_id_free(), blender::BKE_mesh_new_nomain(), BLI_SCOPED_DEFER, CLOG_WARN, convert_ply_to_mesh(), blender::copy_v4_v4(), blender::bke::Corner, blender::data, blender::io::ply::PlyCustomAttribute::data, blender::bke::SpanAttributeWriter< T >::finish(), blender::VArray< T >::from_span(), blender::PLYImportParams::import_attributes, blender::io::validate::index_in_range(), blender::IndexMask::IndexMask(), blender::LOG, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::PLYImportParams::merge_verts, blender::geometry::mesh_merge_by_distance_all(), blender::bke::mesh_set_custom_normals_from_verts(), blender::bke::mesh_smooth_set(), blender::bke::mesh_validate(), blender::io::ply::PlyCustomAttribute::name, blender::None, blender::bke::Point, PRId64, blender::io::validate::size_fits_in_int(), blender::bke::SpanAttributeWriter< T >::span, blender::sRGB, blender::srgb_to_linearrgb_v4(), blender::v, blender::v2, and blender::PLYImportParams::vertex_colors.
Referenced by convert_ply_to_mesh(), import_geometry_set(), import_mesh(), and importer_main_impl().
Definition at line 39 of file ply_export_load_plydata.cc.
References blender::BKE_mesh_from_bmesh_for_eval_nomain(), blender::BKE_mesh_to_bmesh_ex(), blender::BM_mesh_free(), blender::BM_mesh_triangulate(), blender::BMeshFromMeshParams::calc_face_normal, blender::BMeshFromMeshParams::calc_vert_normal, and do_triangulation().
Referenced by do_triangulation(), and load_plydata().
| void blender::io::ply::exporter_main | ( | bContext * | C, |
| const PLYExportParams & | export_params ) |
Definition at line 36 of file ply_export.cc.
References blender::PLYExportParams::ascii_format, blender::BKE_libblock_find_name(), blender::BKE_reportf(), blender::BKE_scene_graph_update_tagged(), C, CLOG_ERROR, blender::PLYExportParams::collection, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::DEG_graph_build_from_collection(), blender::DEG_graph_build_from_view_layer(), blender::DEG_graph_free(), blender::DEG_graph_new(), blender::ED_editors_flush_edits(), blender::PLYExportParams::evaluation_mode, exporter_main(), blender::PLYExportParams::filepath, blender::ID_GR, load_plydata(), blender::LOG, blender::PLYExportParams::reports, blender::RPT_ERROR, write_edges(), write_faces(), write_header(), and write_vertices().
Referenced by exporter_main(), and blender::PLY_export().
|
static |
Definition at line 24 of file ply_import_gsplat.cc.
References blender::data, blender::io::ply::PlyCustomAttribute::data, find_custom_attribute(), and blender::io::ply::PlyCustomAttribute::name.
Referenced by convert_gsplat_ply_to_point_cloud(), find_custom_attribute(), and get_rest_custom_attributes().
|
static |
Definition at line 155 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), find_or_add_attribute(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), and blender::io::ply::PlyCustomAttribute::PlyCustomAttribute().
Referenced by find_or_add_attribute(), and load_custom_attributes().
Definition at line 170 of file ply_import_data.cc.
References F, float_to_value(), and T.
Referenced by float_to_value(), get_binary_value(), and load_edge_element().
|
static |
Definition at line 91 of file ply_export_load_plydata.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::bke::Corner, blender::PLYExportParams::export_uv, blender::array_utils::fill_index_range(), generate_vertex_map(), blender::blender::Span< T >::is_empty(), blender::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, and blender::io::ply::uv_vertex_key::vertex_index.
Referenced by generate_vertex_map(), and load_plydata().
|
static |
Definition at line 180 of file ply_import_data.cc.
References BLI_assert_msg, CHAR, DOUBLE, FLOAT, float_to_value(), get_binary_value(), INT, NONE, SHORT, T, UCHAR, UINT, and USHORT.
Referenced by get_binary_value(), load_face_element(), load_tristrips_element(), parse_row_binary(), and read_list_count().
|
static |
Definition at line 305 of file ply_import.cc.
References blender::BLI_path_basename(), blender::BLI_path_extension_strip(), blender::StringRefNull::c_str(), FILE_MAX, get_datablock_name(), and blender::STRNCPY().
Referenced by get_datablock_name(), import_geometry_set(), import_mesh(), import_point_cloud(), and importer_main().
|
static |
Definition at line 117 of file ply_import_data.cc.
References blender::element, get_index(), and blender::io::ply::PlyProperty::name.
Referenced by get_index(), load_edge_element(), load_face_element(), and load_vertex_element().
Definition at line 42 of file ply_import_gsplat.cc.
References blender::data, find_custom_attribute(), get_rest_custom_attributes(), MAX_REST_ATTRIBUTES, and blender::result.
Referenced by convert_gsplat_ply_to_point_cloud(), and get_rest_custom_attributes().
| bke::GeometrySet blender::io::ply::import_geometry_set | ( | const PLYImportParams & | import_params | ) |
Definition at line 348 of file ply_import.cc.
References blender::BKE_id_free(), BLI_SCOPED_DEFER, convert_gsplat_ply_to_point_cloud(), convert_ply_to_mesh(), blender::data, blender::PLYImportParams::filepath, blender::bke::GeometrySet::from_mesh(), blender::bke::GeometrySet::from_pointcloud(), get_datablock_name(), import_geometry_set(), is_data_gaussian_splat(), read_ply_to_data(), and report_exception().
Referenced by import_geometry_set(), and blender::PLY_import_geometry_set().
| Mesh * blender::io::ply::import_mesh | ( | const PLYImportParams & | import_params | ) |
Definition at line 313 of file ply_import.cc.
References convert_ply_to_mesh(), blender::data, blender::PLYImportParams::filepath, get_datablock_name(), import_mesh(), read_ply_to_data(), and report_exception().
Referenced by import_mesh(), and blender::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 739 of file ply_import_data.cc.
References ASCII, blender::data, ELEM, blender::element, blender::io::ply::PlyHeader::elements, import_ply_data(), load_edge_element(), load_face_element(), load_tristrips_element(), load_vertex_element(), skip_element(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data(), read_ply_to_data(), and TEST().
| PointCloud * blender::io::ply::import_point_cloud | ( | const PLYImportParams & | import_params | ) |
Definition at line 329 of file ply_import.cc.
References convert_gsplat_ply_to_point_cloud(), blender::data, blender::PLYImportParams::filepath, get_datablock_name(), import_point_cloud(), is_data_gaussian_splat(), read_ply_to_data(), and report_exception().
Referenced by import_point_cloud(), and blender::PLY_import_point_cloud().
| void blender::io::ply::importer_main | ( | bContext * | C, |
| const PLYImportParams & | import_params ) |
Definition at line 386 of file ply_import.cc.
References C, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), and importer_main().
Referenced by importer_main(), importer_main(), and blender::PLY_import().
| void blender::io::ply::importer_main | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | view_layer, | ||
| const PLYImportParams & | import_params ) |
Definition at line 496 of file ply_import.cc.
References blender::PLYImportParams::filepath, get_datablock_name(), importer_main(), importer_main_impl(), and report_exception().
|
static |
Definition at line 394 of file ply_import.cc.
References blender::BKE_collection_object_add(), blender::BKE_id_free(), blender::BKE_layer_collection_get_active_editable(), blender::BKE_mesh_add(), blender::BKE_mesh_nomain_to_mesh(), blender::BKE_object_add_only_object(), blender::BKE_object_apply_mat4(), blender::BKE_pointcloud_add(), blender::BKE_pointcloud_nomain_to_pointcloud(), blender::BKE_report(), blender::BKE_view_layer_base_deselect_all(), blender::BKE_view_layer_base_find(), blender::BKE_view_layer_base_select_and_set_active(), blender::BKE_view_layer_synced_ensure(), blender::BLI_assert(), BLI_SCOPED_DEFER, blender::LayerCollection::collection, convert_gsplat_ply_to_point_cloud(), convert_ply_to_mesh(), blender::copy_m4_m3(), blender::data, blender::DEG_id_tag_update(), blender::DEG_id_tag_update_ex(), blender::DEG_relations_tag_update(), blender::PLYImportParams::forward_axis, blender::PLYImportParams::global_scale, blender::Collection::id, blender::Scene::id, ID_IS_EDITABLE, blender::ID_RECALC_ANIMATION, blender::ID_RECALC_BASE_FLAGS, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SYNC_TO_EVAL, blender::ID_RECALC_TRANSFORM, importer_main_impl(), blender::IO_AXIS_Y, blender::IO_AXIS_Z, is_data_gaussian_splat(), blender::mat3_from_axis_conversion(), blender::OB_EMPTY, blender::OB_MESH, blender::OB_POINTCLOUD, read_ply_to_data(), blender::PLYImportParams::reports, blender::rescale_m4(), blender::RPT_WARNING, blender::UnitSettings::scale_length, blender::UnitSettings::system, blender::Scene::unit, blender::unit_m3(), blender::unit_m4(), blender::PLYImportParams::up_axis, blender::PLYImportParams::use_scene_unit, and blender::USER_UNIT_NONE.
Referenced by importer_main(), and importer_main_impl().
|
static |
Definition at line 55 of file ply_import_gsplat.cc.
References is_builtin_gsplat_attribute(), and blender::blender::StringRefBase::startswith().
Referenced by convert_gsplat_ply_to_point_cloud(), and is_builtin_gsplat_attribute().
|
static |
Definition at line 263 of file ply_import.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::data, is_data_gaussian_splat(), and blender::io::ply::PlyCustomAttribute::name.
Referenced by import_geometry_set(), import_point_cloud(), importer_main_impl(), and is_data_gaussian_splat().
|
static |
Definition at line 62 of file io_ply_exporter_test.cc.
References blender::PLYExportParams::export_normals, and load_cube().
Referenced by load_cube(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 173 of file ply_export_load_plydata.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, attribute, blender::bke::attribute_name_is_anonymous(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, BLI_assert_msg, blender::bke::Bool, blender::bke::ColorByte, blender::bke::ColorFloat, 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::ColorRGBA< ChannelStorageType, Space, Alpha >::g, blender::bke::AttributeIter::get(), blender::Span< T >::index_range(), blender::bke::Int16_2D, blender::bke::Int32, blender::bke::Int32_2D, blender::bke::Int8, load_custom_attributes(), blender::bke::AttributeIter::name, blender::bke::Point, blender::bke::Quaternion, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, and blender::Span< T >::size().
Referenced by load_custom_attributes(), and load_plydata().
|
static |
Definition at line 674 of file ply_import_data.cc.
References ASCII, blender::data, blender::element, float_to_value(), get_index(), load_edge_element(), parse_row_ascii(), parse_row_binary(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data(), and load_edge_element().
|
static |
Definition at line 440 of file ply_import_data.cc.
References ASCII, BINARY_BE, CLOG_WARN, blender::io::ply::PlyProperty::count_type, blender::data, blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, blender::io::drop_non_whitespace(), blender::io::drop_whitespace(), blender::element, blender::endian_switch_array(), get_binary_value(), get_index(), load_face_element(), blender::LOG, NONE, blender::io::parse_int(), blender::io::ply::PlyReadBuffer::read_line(), read_list_count(), read_list_values(), blender::Span< T >::size(), skip_property(), blender::io::ply::PlyHeader::type, and blender::io::ply::PlyProperty::type.
Referenced by import_ply_data(), and load_face_element().
| 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 blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), blender::PLYExportParams::apply_modifiers, blender::BASE_SELECTED, blender::BKE_id_free(), blender::BKE_mesh_wrapper_ensure_mdata(), blender::BLI_assert(), blender::io::ply::PlyCustomAttribute::data, blender::DEG_get_evaluated(), blender::DEG_ITER_OBJECT_FLAG_DUPLI, blender::DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY, blender::DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET, blender::DEG_ITER_OBJECT_FLAG_VISIBLE, DEG_OBJECT_ITER_BEGIN, DEG_OBJECT_ITER_END, blender::DEGObjectIterSettings::depsgraph, do_triangulation(), blender::io::ply::PlyData::edges, blender::PLYExportParams::export_attributes, blender::PLYExportParams::export_normals, blender::PLYExportParams::export_selected_objects, blender::PLYExportParams::export_triangulated_mesh, blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, blender::DEGObjectIterSettings::flags, blender::PLYExportParams::forward_axis, generate_vertex_map(), blender::PLYExportParams::global_scale, blender::offset_indices::OffsetIndices< T >::index_range(), blender::IndexRange::IndexRange(), blender::blender::StringRefBase::is_empty(), blender::VArrayCommon< T >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::linearrgb_to_srgb_v4(), load_custom_attributes(), load_plydata(), blender::bke::AttributeAccessor::lookup_or_default(), blender::io::mesh_coerce_for_export_setup(), blender::mul_m3_v3(), blender::mul_m4_v3(), blender::mul_v3_fl(), blender::None, blender::normalize_v3(), blender::OB_MESH, blender::bke::Point, lexit::Vector< T >::reserve(), lexit::Vector< T >::resize(), set_world_axes_transform(), blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), lexit::Vector< T >::size(), blender::sRGB, blender::PLYExportParams::up_axis, blender::io::ply::PlyData::uv_coordinates, blender::io::ply::PlyData::vertex_colors, blender::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(), blender::io::ply::PLYExportPLYDataTest::load_ply_data_from_blendfile(), and load_plydata().
|
static |
Definition at line 577 of file ply_import_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ASCII, b, BINARY_BE, blender::io::ply::PlyProperty::count_type, blender::data, blender::Span< T >::data(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, blender::io::drop_whitespace(), blender::element, blender::endian_switch_array(), get_binary_value(), INT_MAX, load_tristrips_element(), NONE, blender::io::parse_int(), blender::io::ply::PlyReadBuffer::read_line(), read_list_count(), read_list_values(), 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(), and load_tristrips_element().
|
static |
Definition at line 264 of file ply_import_data.cc.
References blender::bke::allow_procedural_attribute_access(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ASCII, blender::bke::attribute_name_is_anonymous(), blender::io::ply::PlyProperty::count_type, blender::data, data_type_normalizer, ELEM, blender::element, get_index(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), load_vertex_element(), blender::io::ply::PlyProperty::name, NONE, parse_row_ascii(), parse_row_binary(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data(), and load_vertex_element().
|
static |
Definition at line 129 of file ply_import_data.cc.
References blender::drop_plus(), blender::io::drop_whitespace(), parse_ascii_value(), and T.
Referenced by parse_ascii_value(), and parse_row_ascii().
Definition at line 54 of file ply_import.cc.
References blender::blender::StringRefBase::data(), parse_keyword(), blender::blender::StringRefBase::size(), and str.
Referenced by parse_keyword(), and read_header().
|
static |
Definition at line 140 of file ply_import_data.cc.
References blender::Span< T >::begin(), blender::io::drop_non_whitespace(), blender::io::drop_whitespace(), blender::element, blender::Span< T >::end(), blender::Span< T >::is_empty(), NONE, parse_ascii_value(), blender::io::parse_int(), parse_row_ascii(), blender::io::ply::PlyReadBuffer::read_line(), and T.
Referenced by load_edge_element(), load_vertex_element(), and parse_row_ascii().
|
static |
Definition at line 225 of file ply_import_data.cc.
References BINARY_BE, BINARY_LE, blender::BLI_assert(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, blender::element, blender::endian_switch(), get_binary_value(), parse_row_binary(), blender::io::ply::PlyReadBuffer::read_bytes(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), T, blender::io::ply::PlyHeader::type, and blender::io::ply::PlyProperty::type.
Referenced by load_edge_element(), load_vertex_element(), and parse_row_binary().
Definition at line 67 of file ply_import.cc.
References len(), parse_word(), and str.
Referenced by parse_word(), and read_header().
|
static |
Definition at line 113 of file io_ply_exporter_test.cc.
References read().
Referenced by read(), and read_temp_file_in_vectorchar().
| const char * blender::io::ply::read_header | ( | PlyReadBuffer & | file, |
| PlyHeader & | r_header ) |
Definition at line 115 of file ply_import.cc.
References blender::io::ply::PlyReadBuffer::after_header(), ASCII, blender::Span< T >::begin(), BINARY_BE, BINARY_LE, blender::io::ply::PlyElement::calc_stride(), blender::Span< T >::data(), blender::element, blender::io::ply::PlyHeader::elements, blender::Span< T >::end(), blender::Span< T >::first(), blender::Span< T >::is_empty(), NONE, parse_keyword(), parse_word(), read_header(), blender::io::ply::PlyReadBuffer::read_line(), blender::Span< T >::size(), skip_space(), blender::StringRef::StringRef(), blender::io::ply::PlyHeader::type, type_from_string(), and UINT.
Referenced by read_header(), read_ply_to_data(), and TEST().
|
static |
Definition at line 396 of file ply_import_data.cc.
References blender::io::ply::PlyProperty::count_type, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, blender::endian_switch(), get_binary_value(), blender::io::ply::PlyReadBuffer::read_bytes(), read_list_count(), and blender::Vector< T, InlineBufferCapacity, Allocator >::resize().
Referenced by load_face_element(), load_tristrips_element(), read_list_count(), and skip_property().
|
static |
Definition at line 415 of file ply_import_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data_type_size, blender::io::ply::PlyReadBuffer::read_bytes(), read_list_values(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::io::ply::PlyProperty::type.
Referenced by load_face_element(), load_tristrips_element(), read_list_values(), and skip_property().
|
static |
Definition at line 208 of file ply_import.cc.
References blender::BKE_report(), blender::BKE_reportf(), blender::StringRefNull::c_str(), CLOG_ERROR, CLOG_WARN, blender::data, blender::PLYImportParams::filepath, import_ply_data(), blender::LOG, read_header(), read_ply_to_data(), report_exception(), blender::PLYImportParams::reports, blender::RPT_ERROR, and blender::RPT_WARNING.
Referenced by import_geometry_set(), import_mesh(), import_point_cloud(), importer_main_impl(), and read_ply_to_data().
|
static |
Definition at line 101 of file io_ply_exporter_test.cc.
References blender::BLI_file_read_text_as_mem(), and read_temp_file_in_string().
Referenced by read_temp_file_in_string(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 120 of file io_ply_exporter_test.cc.
References read(), and read_temp_file_in_vectorchar().
Referenced by read_temp_file_in_vectorchar(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 198 of file ply_import.cc.
References blender::BKE_reportf(), blender::StringRefNull::c_str(), CLOG_ERROR, blender::LOG, report_exception(), blender::PLYImportParams::reports, and blender::RPT_ERROR.
Referenced by import_geometry_set(), import_mesh(), import_point_cloud(), importer_main(), read_ply_to_data(), and report_exception().
|
static |
Definition at line 54 of file ply_export_load_plydata.cc.
References blender::copy_m3_m4(), blender::invert_m3_m3(), blender::IO_AXIS_Y, blender::IO_AXIS_Z, blender::mat3_from_axis_conversion(), blender::mul_m4_m3m4(), blender::mul_v3_m3v3(), set_world_axes_transform(), blender::transpose_m3(), and blender::unit_m3().
Referenced by load_plydata(), and set_world_axes_transform().
|
static |
Definition at line 714 of file ply_import_data.cc.
References ASCII, BINARY_BE, blender::element, skip_element(), skip_property(), blender::io::ply::PlyReadBuffer::try_read_line(), and blender::io::ply::PlyHeader::type.
Referenced by import_ply_data(), and skip_element().
|
static |
Definition at line 424 of file ply_import_data.cc.
References 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(), read_list_values(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), skip_property(), and blender::io::ply::PlyProperty::type.
Referenced by load_face_element(), skip_element(), and skip_property().
|
static |
Definition at line 78 of file ply_import.cc.
References skip_space(), and str.
Referenced by read_header(), and skip_space().
| blender::io::ply::TEST | ( | ply_import | , |
| BufferRefillTest | ) |
Definition at line 25 of file io_ply_importer_test.cc.
References CLOG_ERROR, import_ply_data(), blender::LOG, read_header(), SEP_STR, blender::Span< T >::Span(), and TEST().
Referenced by TEST().
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| above_max_degree_drops_sh | ) |
Definition at line 311 of file io_ply_import_gsplat_test.cc.
References blender::BKE_id_free(), blender::io::ply::GsplatPlyDataBuilder::build(), convert_gsplat_ply_to_point_cloud(), blender::EXPECT_EQ(), EXPECT_TRUE, blender::PointCloud::id, and TEST_F().
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| basic_attributes | ) |
Definition at line 208 of file io_ply_import_gsplat_test.cc.
References blender::BKE_id_free(), blender::io::ply::GsplatPlyDataBuilder::build(), convert_gsplat_ply_to_point_cloud(), blender::io::gsplat::OriginalActivationFunctions::decode_opacity(), blender::io::gsplat::OriginalActivationFunctions::decode_scale(), blender::EXPECT_EQ(), blender::io::ply::GsplatPlyDataBuilder::f_dc(), blender::GSplat, blender::PointCloud::id, blender::bke::AttributeAccessor::lookup(), blender::math::normalize(), blender::io::ply::GsplatPlyDataBuilder::num_points, blender::io::ply::GsplatPlyDataBuilder::opacity(), blender::bke::Point, blender::io::ply::GsplatPlyDataBuilder::position(), blender::io::ply::GsplatPlyDataBuilder::rotation(), blender::io::ply::GsplatPlyDataBuilder::scale(), scale(), TEST_F(), blender::PointCloud::totpoint, blender::PointCloud::type, blender::bke::AttributeReader< T >::varray, blender::math::QuaternionBase< T >::w, blender::math::QuaternionBase< T >::x, blender::math::QuaternionBase< T >::y, and blender::math::QuaternionBase< T >::z.
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| canonical_counts_import_all_coefficients | ) |
Definition at line 257 of file io_ply_import_gsplat_test.cc.
References blender::BKE_id_free(), blender::io::ply::GsplatPlyDataBuilder::build(), convert_gsplat_ply_to_point_cloud(), EXPECT_FALSE, blender::PointCloud::id, and TEST_F().
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| count_not_multiple_of_three_drops_sh | ) |
Definition at line 299 of file io_ply_import_gsplat_test.cc.
References blender::BKE_id_free(), blender::io::ply::GsplatPlyDataBuilder::build(), convert_gsplat_ply_to_point_cloud(), blender::EXPECT_EQ(), EXPECT_TRUE, blender::PointCloud::id, and TEST_F().
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| mid_band_count_keeps_channels | ) |
Definition at line 286 of file io_ply_import_gsplat_test.cc.
References blender::BKE_id_free(), blender::io::ply::GsplatPlyDataBuilder::build(), convert_gsplat_ply_to_point_cloud(), EXPECT_TRUE, blender::PointCloud::id, and TEST_F().
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| missing_required_attributes | ) |
Definition at line 200 of file io_ply_import_gsplat_test.cc.
References convert_gsplat_ply_to_point_cloud(), blender::data, blender::EXPECT_EQ(), and TEST_F().
| blender::io::ply::TEST_F | ( | io_ply_import_gsplat | , |
| non_canonical_count_keeps_channels | ) |
Definition at line 271 of file io_ply_import_gsplat_test.cc.
References blender::BKE_id_free(), blender::io::ply::GsplatPlyDataBuilder::build(), convert_gsplat_ply_to_point_cloud(), EXPECT_TRUE, blender::PointCloud::id, and TEST_F().
| blender::io::ply::TEST_F | ( | PLYExportPLYDataTest | , |
| CubeLoadPLYData | ) |
Definition at line 435 of file io_ply_exporter_test.cc.
References blender::EXPECT_EQ(), blender::PLYExportParams::export_uv, TEST_F(), 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 blender::EXPECT_EQ(), blender::PLYExportParams::export_uv, TEST_F(), 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 blender::ARRAY_SIZE(), lexit::Vector< T >::data(), blender::io::ply::PlyData::edges, blender::EXPECT_EQ(), blender::PLYExportParams::export_uv, blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, blender::PLYExportParams::forward_axis, blender::PLYExportParams::global_scale, blender::IO_AXIS_Y, blender::IO_AXIS_Z, lexit::Vector< T >::size(), TEST_F(), blender::PLYExportParams::up_axis, 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 blender::ARRAY_SIZE(), lexit::Vector< T >::data(), blender::io::ply::PlyData::edges, blender::EXPECT_EQ(), blender::PLYExportParams::export_uv, blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, blender::PLYExportParams::forward_axis, blender::PLYExportParams::global_scale, blender::IO_AXIS_Y, blender::IO_AXIS_Z, lexit::Vector< T >::size(), TEST_F(), blender::PLYExportParams::up_axis, 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 blender::EXPECT_EQ(), blender::PLYExportParams::export_attributes, blender::PLYExportParams::export_uv, TEST_F(), 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 blender::EXPECT_EQ(), blender::PLYExportParams::export_uv, TEST_F(), 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 blender::PLYExportParams::ascii_format, blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_string(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::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 blender::PLYExportParams::ascii_format, blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_vectorchar(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::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 blender::PLYExportParams::ascii_format, blender::BKE_blender_version_string(), blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_string(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::PLYExportParams::vertex_colors, and write_header().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| blender::io::ply::TEST_F | ( | PLYExportTest | , |
| WriteHeaderBinary | ) |
Definition at line 174 of file io_ply_exporter_test.cc.
References blender::PLYExportParams::ascii_format, blender::BKE_blender_version_string(), blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_string(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::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 blender::PLYExportParams::ascii_format, blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_string(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::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 blender::PLYExportParams::ascii_format, blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_vectorchar(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::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 blender::PLYExportParams::ascii_format, blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_string(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::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 blender::PLYExportParams::ascii_format, blender::PLYExportParams::export_normals, blender::PLYExportParams::filepath, load_cube(), blender::None, read_temp_file_in_vectorchar(), blender::result, blender::STRNCPY(), temp_file_path, TEST_F(), blender::PLYExportParams::vertex_colors, and write_vertices().
|
static |
Definition at line 85 of file ply_import.cc.
References CHAR, blender::Span< T >::data(), DOUBLE, ELEM, FLOAT, INT, NONE, SHORT, blender::Span< T >::size(), type_from_string(), UCHAR, UINT, and USHORT.
Referenced by read_header(), and type_from_string().
| 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(), write_edges(), and blender::io::ply::FileBuffer::write_to_file().
Referenced by exporter_main(), and write_edges().
| void blender::io::ply::write_faces | ( | FileBuffer & | buffer, |
| const PlyData & | ply_data ) |
Definition at line 47 of file ply_export_data.cc.
References lexit::Vector< T >::data(), blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyData::face_vertices, blender::io::ply::FileBuffer::write_face(), write_faces(), and blender::io::ply::FileBuffer::write_to_file().
Referenced by exporter_main(), TEST_F(), TEST_F(), and write_faces().
| 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 blender::PLYExportParams::ascii_format, blender::BKE_blender_version_string(), blender::io::ply::PlyData::edges, blender::io::ply::PlyData::face_sizes, blender::io::ply::PlyCustomAttribute::name, lexit::Vector< T >::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, write_header(), 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(), TEST_F(), and write_header().
| 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, 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(), blender::io::ply::FileBuffer::write_vertex_normal(), and write_vertices().
Referenced by exporter_main(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and write_vertices().
|
static |
Definition at line 100 of file ply_import_data.cc.
Referenced by load_vertex_element().
|
static |
Definition at line 97 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(), read_list_values(), and skip_property().
|
constexpr |
Definition at line 38 of file ply_import_gsplat.cc.
Referenced by convert_gsplat_ply_to_point_cloud(), and get_rest_custom_attributes().
|
constexpr |
Definition at line 37 of file ply_import_gsplat.cc.
Referenced by convert_gsplat_ply_to_point_cloud().