MantisBT - Open CASCADE
View Issue Details
0031638Open CASCADE[OCCT] OCCT:Modeling Algorithmspublic2020-06-29 01:012020-06-29 01:05
ssv 
msv 
normalminor 
newopen 
 
[OCCT] 7.5.0* 
0031638: Draw command chfi2d corrupts face
The attached simple script was prepared to demonstrate a parametric sketch definition in Draw for the customer. It constructs a planar face with two rectangular wires (outer and inner). In the end, the edges of the inner wire are filleted with chfi2d function (to round corners). While geometrically the obtained result looks perfect, it is not topologically valid: somehow the resulting face happens to contain just one wire (of course, disconnected). Btw, such a problem cannot be fixed with fixshape (that's quite expected).

On Shape faulty_1 :
BRepCheck_NotConnected
On Shape faulty_2 :
BRepCheck_UnorientableShape
Shape faulty_1 on shape faulty_2 :
BRepCheck_NotConnected

Faulty shapes in variables faulty_1 to faulty_2

Note: to reproduce the issue, it is enough to call chfi2d for a couple of edges, so it's not necessary to round all four corners:

chfi2d f f f_5 f_8 F $r
pload ALL
set X 10
set Y 8
set Width [expr $X*0.8]
set Height [expr $Y*0.8]
set r [expr $Width/5.]
vertex v1 0 0 0
vertex v2 [expr $X*2] 0 0
vertex v3 [expr $X*2] [expr $Y*2] 0
vertex v4 0 [expr $Y*2] 0
edge e1 v1 v2
edge e2 v2 v3
edge e3 v3 v4
edge e4 v4 v1
vertex v5 [expr $X-$Width/2] [expr $Y-$Height/2] 0
vertex v6 [expr $X+$Width/2] [expr $Y-$Height/2] 0
vertex v7 [expr $X+$Width/2] [expr $Y+$Height/2] 0
vertex v8 [expr $X-$Width/2] [expr $Y+$Height/2] 0
wire ow e1 e2 e3 e4
edge e5 v5 v6
edge e6 v6 v7
edge e7 v7 v8
edge e8 v8 v5
wire iw e5 e6 e7 e8
donly ow iw
orientation iw R
plane p
mkface f p
emptycopy f f
add ow f
add iw f
checkshape f # OK
explode f e
chfi2d f f f_5 f_8 F $r f_5 f_6 F $r f_6 f_7 F $r f_7 f_8 F $r
checkshape f # NOK
No tags attached.
Issue History
2020-06-29 01:01ssvNew Issue
2020-06-29 01:01ssvAssigned To => msv
2020-06-29 01:02ssvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23075#r23075
2020-06-29 01:03ssvDescription Updatedbug_revision_view_page.php?rev_id=23077#r23077
2020-06-29 01:05ssvDescription Updatedbug_revision_view_page.php?rev_id=23078#r23078

There are no notes attached to this issue.