OCCT icon indicating copy to clipboard operation
OCCT copied to clipboard

BRepOffsetAPI_MakeOffset fail

Open dpasukhi opened this issue 11 months ago • 0 comments

Description

Report: https://dev.opencascade.org/content/brepoffsetapimakeoffset-fail-0 I would like to ask, the model in the attachment is offset through BRepOffsetAPI_MakeOffset, but the offset fails. What is the reason? How can the modification be successful?

Expected Behavior

Offset created without failing

Actual Behavior

Offset operation failed

Sample Code or DRAW Tcl Script

// shape is the edge in the attachment
BRepBuilderAPI_FindPlane findPlane(shape, 0.001);
BRepBuilderAPI_MakeFace makeFace(findPlane.Plane()->Pln());
TopoDS_Face face = makeFace;
BRepOffsetAPI_MakeOffset makeOffset(face, GeomAbs_JoinType::GeomAbs_Intersection,true);
BRepBuilderAPI_MakeWire makeWire(TopoDS::Edge(shape));
makeOffset.AddWire(makeWire);
makeOffset.Perform(0.1, 0);
if (makeOffset.IsDone()) {
TopoDS_Shape S = makeOffset.Shape();
}

Operating System

Linux

Compiler

GCC

Bitness

64-bit

OCCT Version

latest

Additional Files

2024-01-23_183908 模型2024012316215.zip

dpasukhi avatar Dec 14 '24 11:12 dpasukhi