Skip to content

Section of two solids results in a compound of edges #1173

@pieterhijma

Description

@pieterhijma

Description

Applying a section of two solids results not in a solid but in a compound of edges. See FreeCAD/FreeCAD#25169.

Expected Behavior

The correct section as a solid.

Actual Behavior

A valid shape is returned but incorrect as a result. The output of the DRAW script that applies the section in two different ways:

shape1
Number of shapes in shape1
 VERTEX    : 4
 EDGE      : 8
 WIRE      : 5
 FACE      : 5
 SHELL     : 1
 SOLID     : 1
 COMPSOLID : 0
 COMPOUND  : 1
 SHAPE     : 25

shape2
Number of shapes in shape2
 VERTEX    : 4
 EDGE      : 8
 WIRE      : 5
 FACE      : 5
 SHELL     : 1
 SOLID     : 1
 COMPSOLID : 0
 COMPOUND  : 1
 SHAPE     : 25

Number of shapes in section1
 VERTEX    : 15
 EDGE      : 14
 WIRE      : 0
 FACE      : 0
 SHELL     : 0
 SOLID     : 0
 COMPSOLID : 0
 COMPOUND  : 1
 SHAPE     : 30

BOPAlgo_AlertAcquiredSelfIntersection
BOPAlgo_AlertAcquiredSelfIntersection

Number of shapes in section2
 VERTEX    : 14
 EDGE      : 14
 WIRE      : 0
 FACE      : 0
 SHELL     : 0
 SOLID     : 0
 COMPSOLID : 0
 COMPOUND  : 1
 SHAPE     : 29

The resulting shape:

Image

Sample Code or DRAW Tcl Script

The DRAW script:

section.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
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions