|
Blender V5.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 = 800 |
| float | bitmap_scale_reciprocal = 1.0f |
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.
Definition at line 1162 of file uv_pack.cc.
| blender::geometry::Occupancy::Occupancy | ( | const float | initial_scale | ) |
Definition at line 1195 of file uv_pack.cc.
References bitmap_radix, bitmap_scale_reciprocal, blender::false, and increase_scale().
| void blender::geometry::Occupancy::clear | ( | ) |
Definition at line 1209 of file uv_pack.cc.
References bitmap_radix.
Referenced by increase_scale().
| void blender::geometry::Occupancy::increase_scale | ( | ) |
Definition at line 1201 of file uv_pack.cc.
References bitmap_scale_reciprocal, blender::BLI_assert(), and clear().
Referenced by Occupancy().
| 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 1331 of file uv_pack.cc.
References blender::geometry::PackIsland::build_transformation(), blender::geometry::PackIsland::get_diagonal_support(), blender::mul_v2_m2v2(), blender::geometry::PackIsland::pivot_, blender::geometry::UVPhi::rotation, scale(), trace_triangle(), blender::geometry::UVPhi::translation, and blender::geometry::PackIsland::triangle_vertices_.
| 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 1241 of file uv_pack.cc.
References bitmap_radix, bitmap_scale_reciprocal, distance(), floorf, blender::min_ff(), blender::geometry::signed_distance_fat_triangle(), blender::x, and y.
Referenced by trace_island().
| int blender::geometry::Occupancy::bitmap_radix = 800 |
Definition at line 1183 of file uv_pack.cc.
Referenced by clear(), Occupancy(), and trace_triangle().
| float blender::geometry::Occupancy::bitmap_scale_reciprocal = 1.0f |
Definition at line 1184 of file uv_pack.cc.
Referenced by increase_scale(), Occupancy(), and trace_triangle().