FIX: fix bug when delete filament

update filament of HeightRange
jira: none

Change-Id: I62cb21a65ecdfc36e8bc7d0915a85ecba578e49f
(cherry picked from commit 8232a716e64fcfbd12fc7ebdaeeef4bfde261f66)
This commit is contained in:
zhimin.zeng
2024-07-14 22:14:52 +08:00
committed by Noisyfox
parent d6864a161c
commit 7aa1980813
4 changed files with 37 additions and 4 deletions

View File

@@ -1576,7 +1576,7 @@ void TriangleSelector::get_facets_split_by_tjoints(const Vec3i32 &vertices, cons
this->get_facets_split_by_tjoints(
{ vertices(0), midpoints(0), midpoints(2) },
{ this->neighbor_child(neighbors(0), vertices(1), vertices(0), Partition::Second),
-1,
-1,
this->neighbor_child(neighbors(2), vertices(0), vertices(2), Partition::First) },
out_triangles);
this->get_facets_split_by_tjoints(
@@ -1769,7 +1769,7 @@ void TriangleSelector::deserialize(const TriangleSplittingData& data, bool needs
auto state = is_split ? EnforcerBlockerType::NONE : EnforcerBlockerType((code & 0b1100) == 0b1100 ? next_nibble() + 3 : code >> 2);
// BBS
if (state > max_ebt)
if (state > max_ebt || state == to_delete_filament)
state = EnforcerBlockerType::NONE;
if (to_delete_filament != EnforcerBlockerType::NONE && state != EnforcerBlockerType::NONE) {