|
Blender V4.3
|
Public Member Functions | |
| Occupancy (const float initial_scale) | |
| void | increase_scale () |
| void | clear () |
| float | trace_triangle (const float2 &uv0, const float2 &uv1, const float2 &uv2, const float margin, const bool write) const |
| float | trace_island (const PackIsland *island, const UVPhi phi, const float scale, const float margin, const bool write) const |
Public Attributes | |
| int | bitmap_radix |
| float | bitmap_scale_reciprocal |
Helper class for the xatlas strategy. Accelerates geometry queries by approximating exact queries with a bitmap. Includes some book keeping variables to simplify the algorithm.
(width-1, height-1) is named the "top-right". Definition at line 1138 of file uv_pack.cc.
| blender::geometry::Occupancy::Occupancy | ( | const float | initial_scale | ) |
Definition at line 1171 of file uv_pack.cc.
References bitmap_radix, bitmap_scale_reciprocal, and increase_scale().
| void blender::geometry::Occupancy::clear | ( | ) |
Definition at line 1187 of file uv_pack.cc.
References bitmap_radix.
Referenced by increase_scale(), and blender::geometry::pack_island_xatlas().
| void blender::geometry::Occupancy::increase_scale | ( | ) |
Definition at line 1179 of file uv_pack.cc.
References bitmap_scale_reciprocal, BLI_assert, and clear().
Referenced by Occupancy(), and blender::geometry::pack_island_xatlas().
| float blender::geometry::Occupancy::trace_island | ( | const PackIsland * | island, |
| const UVPhi | phi, | ||
| const float | scale, | ||
| const float | margin, | ||
| const bool | write ) const |
Definition at line 1309 of file uv_pack.cc.
References blender::geometry::PackIsland::build_transformation(), blender::geometry::PackIsland::get_diagonal_support(), mul_v2_m2v2(), blender::geometry::PackIsland::pivot_, trace_triangle(), and blender::geometry::PackIsland::triangle_vertices_.
Referenced by blender::geometry::find_best_fit_for_island(), and blender::geometry::pack_island_xatlas().
| float blender::geometry::Occupancy::trace_triangle | ( | const float2 & | uv0, |
| const float2 & | uv1, | ||
| const float2 & | uv2, | ||
| const float | margin, | ||
| const bool | write ) const |
Definition at line 1219 of file uv_pack.cc.
References bitmap_radix, bitmap_scale_reciprocal, floorf, max_fff(), min_ff(), min_fff(), blender::geometry::signed_distance_fat_triangle(), and x.
Referenced by trace_island().
| int blender::geometry::Occupancy::bitmap_radix |
Definition at line 1159 of file uv_pack.cc.
Referenced by clear(), Occupancy(), blender::geometry::pack_island_xatlas(), and trace_triangle().
| float blender::geometry::Occupancy::bitmap_scale_reciprocal |
Definition at line 1160 of file uv_pack.cc.
Referenced by blender::geometry::find_best_fit_for_island(), increase_scale(), Occupancy(), and trace_triangle().