View Issue Details

IDProjectCategoryView StatusLast Update
0031638Open CASCADEOCCT:Modeling Algorithmspublic2023-08-01 15:08
ReporterssvAssigned Tomsv 
PrioritynormalSeverityminor 
Status newResolutionopen 
Target VersionUnscheduled 
Summary0031638: Draw command chfi2d corrupts face
DescriptionThe 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
Steps To Reproducepload 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
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-06-29 01:01 ssv New Issue
2020-06-29 01:01 ssv Assigned To => msv
2020-06-29 01:02 ssv Steps to Reproduce Updated
2020-06-29 01:03 ssv Description Updated
2020-06-29 01:05 ssv Description Updated
2020-09-15 11:41 msv Target Version 7.5.0 => 7.6.0
2021-08-29 18:53 msv Target Version 7.6.0 => 7.7.0
2022-10-24 10:42 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:08 dpasukhi Target Version 7.8.0 => Unscheduled