View Issue Details

IDProjectCategoryView StatusLast Update
0033794CommunityOCCT:Modeling Algorithmspublic2024-08-14 15:30
Reportereryar Assigned Toastromko  
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2015 
Product Version7.8.1 
Summary0033794: Modeling Algorithms - BRepOffsetAPI_MakeOffset not work when offset inside
Descriptionhttps://dev.opencascade.org/content/brepoffsetapimakeoffset-not-work-when-offset-inside

BRepBuilderAPI_MakePolygon polygonBuilder;
polygonBuilder.Add(gp_Pnt(-2784, 741, 0));
polygonBuilder.Add(gp_Pnt(-1219, 741, 0));
polygonBuilder.Add(gp_Pnt(-1219, 500, 0));
polygonBuilder.Add(gp_Pnt(-2784, 500, 0));
polygonBuilder.Add(gp_Pnt(-2784, -2708, 0));
polygonBuilder.Add(gp_Pnt(964, -2708, 0));
polygonBuilder.Add(gp_Pnt(964, 500, 0));
polygonBuilder.Add(gp_Pnt(-19, 500, 0));
polygonBuilder.Add(gp_Pnt(-19, 741, 0));
polygonBuilder.Add(gp_Pnt(964, 741, 0));
polygonBuilder.Add(gp_Pnt(964, 3599, 0));
polygonBuilder.Add(gp_Pnt(-2784, 3599, 0));
polygonBuilder.Close();
auto wire = polygonBuilder.Wire();

BRepOffsetAPI_MakeOffset offsetMaker(wire, GeomAbs_Intersection);
// outside offset is ok
offsetMaker.Perform(-100,0.01);
if (offsetMaker.IsDone())
{
    m_NewShape = offsetMaker.Shape();
}
Steps To Reproduce
# Draw Scripts.
polyline w -2784 741 0 -1219 741 0 -1219 500 0 -2784 500 0 -2784 -2708 0 964 -2708 0 964 500 0 -19 500 0 -19 741 0 964 741 0 964 3599 0 -2784 3599 0 -2784 741 0

mkoffset r w 1 -100 i 0.01
TagsNo tags attached.
Test case number

Attached Files

  • offset failed.PNG (19,214 bytes)

Activities

eryar

2024-08-14 06:17

developer  

offset failed.PNG (19,214 bytes)

Issue History

Date Modified Username Field Change
2024-08-14 06:17 eryar New Issue
2024-08-14 06:17 eryar Assigned To => akaftasev
2024-08-14 06:17 eryar File Added: offset failed.PNG
2024-08-14 15:29 dpasukhi Target Version 7.8.1 =>
2024-08-14 15:29 dpasukhi Summary BRepOffsetAPI_MakeOffset not work when offset inside => Modeling Algorithms - BRepOffsetAPI_MakeOffset not work when offset inside
2024-08-14 15:29 dpasukhi Description Updated
2024-08-14 15:29 dpasukhi Steps to Reproduce Updated
2024-08-14 15:29 dpasukhi Assigned To akaftasev => astromko