View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0033908 | Community | OCCT:Modeling Algorithms | public | 2025-09-11 18:29 | 2026-01-07 15:04 |
| Reporter | j.bourgoin | Assigned To | j.bourgoin | ||
| Priority | normal | Severity | major | ||
| Status | feedback | Resolution | open | ||
| Platform | Windows | OS | VC++ 2022 | ||
| Product Version | 7.7.1 | ||||
| Summary | 0033908: Bad result with BRepAlgoAPI_Cut | ||||
| Description | Hello, I try to use BRepAlgoAPI_Cut between 2 shapes. I should have a shape as result but I get an empty TopoDS_Shape. | ||||
| Steps To Reproduce | BRepAlgoAPI_Cut lBuilder ; BRep_Builder lBRepBuilder ; TopTools_ListOfShape lArgs ; TopoDS_Shape lArg, lTool ; BRepTools::Read(lArg, "lPositiveGeom.brep", lBRepBuilder) ; BRepTools::Read(lTool, "lNegativeGeom.brep", lBRepBuilder) ; lArgs.Append(lArg) ; lBuilder.SetArguments(lArgs) ; TopTools_ListOfShape lTools ; lTools.Append(lTool) ; lBuilder.SetTools(lTools) ; lBuilder.SetFuzzyValue(1e-6) ; lBuilder.Build() ; if (lBuilder.IsDone() && !lBuilder.HasErrors()) { pResultShape = lBuilder.Shape() ; BRepTools::Write(pResultShape, "pResultShape.brep") ; } | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
| related to | 0033900 | feedback | j.bourgoin | Bad STEP import |
|
|
pResultShape.brep (188 bytes) lNegativeGeom.brep (9,959 bytes) lPositiveGeom.brep (1,313 bytes) |
|
|
The lNegativeGeom.brep consists of two parts: "plane" and "cube". In case of an attempt to cut from the lPositiveGeom.brep disk only cube, it will return the valid result, so the problem is in the "plane". According to the topology naming this plane is a solid, so it should be a very thin parallelepiped, but in fact it is a plane. It has only 6 plane faces: top, bottom, and 4 outside walls. While it should have 4 more inside walls to be a parallelepiped with a hole. This invalidity made the given shape flat (during any shape healing or from the beginning, I don't know). So cutting a plane from the real solid with volume led to an empty shape as a result. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-09-11 18:29 | j.bourgoin | New Issue | |
| 2025-09-11 18:29 | j.bourgoin | Assigned To | => akaftasev |
| 2025-09-11 18:29 | j.bourgoin | File Added: pResultShape.brep | |
| 2025-09-11 18:29 | j.bourgoin | File Added: lNegativeGeom.brep | |
| 2025-09-11 18:29 | j.bourgoin | File Added: lPositiveGeom.brep | |
| 2025-10-23 11:26 | dpasukhi | Relationship added | related to 0033900 |
| 2025-11-19 16:05 | ika | Note Added: 0117098 | |
| 2026-01-07 14:26 | dpasukhi | Note View State: 0117098: public | |
| 2026-01-07 15:04 | dpasukhi | Assigned To | akaftasev => j.bourgoin |
| 2026-01-07 15:04 | dpasukhi | Status | new => feedback |