Skip to content

BRepOffsetAPI_MakeOffset fail #191

Open
@dpasukhi

Description

@dpasukhi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. ModelingBoolean operations, offsets, primitives, any conversion, brep builders and etc...2. BugSomething isn't working4. Minor5. Community

    Type

    No type

    Projects

    • Status

      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions