Skip to content

mkoffsetshape bad geometry (wrench.brep) #1107

@flaviut

Description

@flaviut

Description

When using mkoffsetshape on the attached wrench model, the fillet geometry around the head is wrong. This is the geometry before doing the mkoffsetshape:

Image

This is a completely bug than pacman.brep, and follows a different code path.

Note: I am addressing this in my personal fork with flaviut@8e0b14c. This is not a pull request, and I do expect anyone to read that code. I do not personally understand that diff; I have no experience with OCCT or CAD kernel development.

Expected Behavior

I expected non-broken geometry, something like this:

Image

Actual Behavior

See the holes in the geometry where the arrows are pointing:

Image

Sample Code or DRAW Tcl Script

./build/lin64/gcc/bin/DRAWEXE -i -c "pload MODELING VISUALIZATION; vinit; restore wrench.brep s; mkoffsetshape r s 1.0 1e-7 0 0 a 0; vdisplay r; vsetdispmode r 1; vfit"

wrench.brep.zip

Operating System

Linux

Compiler

GCC

Bitness

64-bit

OCCT Version

latest

Additional Files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. ModelingBoolean operations, offsets, primitives, any conversion, brep builders and etc...2. BugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions