@@ -542,6 +542,7 @@ def meshFaceWithMetric(hook, i, edges, hmin, hmax, hausd, mesh, FAILED):
542
542
try :
543
543
a = occ .trimesh (hook , edges , i , hmin , hmax , hausd , 1.1 )
544
544
_enforceEdgesInFace (a , edgesSav )
545
+ a = Generator .close (a , 1.e-10 ) # needed for periodic faces
545
546
if occ .getFaceOrientation (hook , i ) == 0 :
546
547
a = Transform .reorder (a , (- 1 ,))
547
548
mesh .append (a )
@@ -572,6 +573,7 @@ def meshFaceInUV(hook, i, edges, grading, mesh, FAILED):
572
573
_unscaleUV ([a ], T )
573
574
o = occ .evalFace (hook , a , i )
574
575
_enforceEdgesInFace (o , edgesSav )
576
+ a = Generator .close (a , 1.e-10 ) # needed for periodic faces
575
577
if occ .getFaceOrientation (hook , i ) == 0 :
576
578
o = Transform .reorder (o , (- 1 ,))
577
579
mesh .append (o )
@@ -584,7 +586,7 @@ def meshFaceInUV(hook, i, edges, grading, mesh, FAILED):
584
586
585
587
return SUCCESS
586
588
587
- # mesh all CAD edges with hmax, hausd
589
+ # mesh all CAD edges with hmin, hmax, hausd
588
590
def meshAllEdges (hook , hmin , hmax , hausd , N , edgeList = None ):
589
591
if edgeList is None :
590
592
nbEdges = occ .getNbEdges (hook )
@@ -593,6 +595,7 @@ def meshAllEdges(hook, hmin, hmax, hausd, N, edgeList=None):
593
595
for i in edgeList :
594
596
e = occ .meshOneEdge (hook , i , hmin , hmax , hausd , N , None )
595
597
dedges .append (e )
598
+ dedges = Generator .zip (dedges , tol = hmax / 100. ) # safe and necessary for corner/seam points
596
599
return dedges
597
600
598
601
#=================================================================
0 commit comments