Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BRepOffsetAPI_MakeOffset fail #191

Open
dpasukhi opened this issue Dec 14, 2024 · 0 comments
Open

BRepOffsetAPI_MakeOffset fail #191

dpasukhi opened this issue Dec 14, 2024 · 0 comments
Labels
1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 2. Bug Something isn't working 4. Minor 5. Community

Comments

@dpasukhi
Copy link
Member

dpasukhi commented Dec 14, 2024

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 dpasukhi added 2. Bug Something isn't working 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 4. Minor 5. Community labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 2. Bug Something isn't working 4. Minor 5. Community
Projects
Status: Todo
Development

No branches or pull requests

1 participant