commit 689860df4738b1b8633a6403548e04580545ef31
parent aa79affa86b89328fea7635eec8f274d2c77dc27
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 12 Jun 2020 08:52:11 +0200
Change an assert that failed with some ill-formed models
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/senc3d_scene_analyze.c b/src/senc3d_scene_analyze.c
@@ -496,8 +496,7 @@ extract_connex_components
* triangle on top of the component, this triangle being the one whose
* |Nz| is maximal. If this triangle has its 2 sides in the component,
* the component is inner */
- if(max_nz == 0) ASSERT(max_z_is_2sided);
- if(max_z_is_2sided) cc->is_outer_border = 0;
+ if(max_nz == 0 || max_z_is_2sided) cc->is_outer_border = 0;
else {
ASSERT(max_nz_side_id != SIDE_NULL__);
if(TRGSIDE_IS_FRONT(max_nz_side_id)