|
Blender V5.3
|
Classes | |
| struct | UVLayer |
Public Member Functions | |
| void | init (const Mesh &mesh) |
| void | find_components (const ExtendableMesh &emesh) |
| bool | contig_uv_maps_across_edge (const ExtendableMesh &mesh, int e, int f1, int f2) const |
| bool | contig_uv_maps_around_vert (const ExtendableMesh &emesh, int v) const |
Public Attributes | |
| bool | has_uv_maps = false |
| Array< int > | face_component |
| Vector< UVLayer > | uv_maps |
Definition at line 719 of file mesh_bevel.cc.
| bool blender::geometry::uv::UVMapInfo::contig_uv_maps_across_edge | ( | const ExtendableMesh & | mesh, |
| int | e, | ||
| int | f1, | ||
| int | f2 ) const |
Returns true when UV data is contiguous across edge e between faces f1 and f2.
Definition at line 768 of file mesh_bevel.cc.
References blender::e, blender::bke::mesh::face_find_corner_from_vert(), has_uv_maps, blender::geometry::ExtendableMesh::src_corner_verts, blender::geometry::ExtendableMesh::src_edges, blender::geometry::ExtendableMesh::src_faces, uv_maps, and blender::v2.
Referenced by find_components().
| bool blender::geometry::uv::UVMapInfo::contig_uv_maps_around_vert | ( | const ExtendableMesh & | emesh, |
| int | v ) const |
Returns true when UV data is contiguous at vertex v: all corners at v have the same UV value in every layer. Mirrors #contig_ldata_around_vert from bmesh_bevel.cc.
Definition at line 920 of file mesh_bevel.cc.
References has_uv_maps, blender::geometry::ExtendableMesh::src_vert_to_corner, uv_maps, blender::v, and blender::blender::vec_struct_base< T, Size, is_trivial_type >::values.
| void blender::geometry::uv::UVMapInfo::find_components | ( | const ExtendableMesh & | emesh | ) |
Determine connected components of faces, where faces in the same component have contiguous UV coordinates across shared edges for ALL UV maps.
Definition at line 806 of file mesh_bevel.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), contig_uv_maps_across_edge(), face_component, has_uv_maps, blender::offset_indices::OffsetIndices< T >::index_range(), blender::offset_indices::OffsetIndices< T >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::pop_last(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::offset_indices::OffsetIndices< T >::size(), blender::Span< T >::slice(), blender::geometry::ExtendableMesh::src_corner_edges, blender::geometry::ExtendableMesh::src_corner_verts, blender::geometry::ExtendableMesh::src_edge_to_face, blender::geometry::ExtendableMesh::src_faces, and blender::geometry::ExtendableMesh::src_positions.
| void blender::geometry::uv::UVMapInfo::init | ( | const Mesh & | mesh | ) |
Definition at line 749 of file mesh_bevel.cc.
References blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), has_uv_maps, blender::bke::mesh::is_uv_map(), blender::bke::AttributeIter::name, uv_maps, and blender::VArraySpan< T >::VArraySpan().
| Array<int> blender::geometry::uv::UVMapInfo::face_component |
Definition at line 722 of file mesh_bevel.cc.
Referenced by blender::geometry::construct::choose_rep_face(), blender::geometry::debug::dump_new_face_examples(), and find_components().
| bool blender::geometry::uv::UVMapInfo::has_uv_maps = false |
Definition at line 721 of file mesh_bevel.cc.
Referenced by contig_uv_maps_across_edge(), contig_uv_maps_around_vert(), find_components(), and init().
Definition at line 728 of file mesh_bevel.cc.
Referenced by contig_uv_maps_across_edge(), contig_uv_maps_around_vert(), and init().