Skip to content

Incorrect minimum distance with intersecting parts #1123

@pieterhijma

Description

@pieterhijma

Description

Computing the minimum distance between shapes that intersect each other may give incorrect results. Below are 4 cylinders very close together that all intersect the main part. Two of those parts have a minimum distance of 0 or a value less than the tolerance, which is expected, whereas two other have a value greater than zero which is incorrect.

Image

See FreeCAD/FreeCAD#25158.

Expected Behavior

Returning 0 or a value less than the tolerance computing:

broken.brp: 0
broken001.brp: 0
ok.brp: 6.89411847443645e-15
ok001.brp: 0

Actual Behavior

Giving a value larger than the tolerance for the broken brep files:

broken.brp: 6.082093023436903e-05
broken001.brp: 0.083053955257165565
ok.brp: 6.89411847443645e-15
ok001.brp: 0

Sample Code or DRAW Tcl Script

DRAW test: incorrect-minimum-distance.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 working7. FreeCADThe issue related to FreeCAD project

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions