View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003493 | Part | Bug | public | 2018-05-25 17:35 | 2018-05-27 13:14 |
| Reporter | mlampert | Assigned To | wmayer | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.18 | ||||
| Target Version | 0.18 | Fixed in Version | 0.18 | ||
| Summary | 0003493: Python Shape.isClosed() returns false for any solid, including primitive Parts | ||||
| Description | Creating a box/sphere/cone/.... and call isClosed on the Shape of the object always returns false. | ||||
| Steps To Reproduce | box = Part.makeBox(10, 10, 10) box.isClosed() | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|
|
According to the documentation the function does only something meaningful for shells, wires and edges and for all other shape types it only queries a flag but does not perform a geometric check. [code=c++] //! If S is Shell, returns True if it has no free boundaries (edges). //! If S is Wire, returns True if it has no free ends (vertices). //! (Internal and External sub-shapes are ignored in these checks) //! If S is Edge, returns True if its vertices are the same. //! For other shape types returns S.Closed(). Standard_EXPORT static Standard_Boolean IsClosed (const TopoDS_Shape& S); [/code] To make this function behave what the user expects it performs now the check for the shell of a solid. See https://github.com/FreeCAD/FreeCAD/commit/0425c7f3c886e844cbdf405d27574bb93f2cf748 |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-05-25 17:35 | mlampert | New Issue | |
| 2018-05-25 17:35 | mlampert | Status | new => assigned |
| 2018-05-25 17:35 | mlampert | Assigned To | => mlampert |
| 2018-05-25 21:50 | mlampert | Assigned To | mlampert => |
| 2018-05-25 21:50 | mlampert | Status | assigned => new |
| 2018-05-25 21:50 | mlampert | Summary | Cannot select existing solid as stock object => Python Shape.isClosed() returns false for any solid, including primitive Parts |
| 2018-05-25 21:50 | mlampert | Description Updated | |
| 2018-05-25 21:50 | mlampert | Steps to Reproduce Updated | |
| 2018-05-25 21:50 | mlampert | Project | Path => Part |
| 2018-05-27 13:14 | wmayer | Note Added: 0011285 | |
| 2018-05-27 13:14 | wmayer | Assigned To | => wmayer |
| 2018-05-27 13:14 | wmayer | Status | new => closed |
| 2018-05-27 13:14 | wmayer | Resolution | open => fixed |
| 2018-05-27 13:14 | wmayer | Fixed in Version | => 0.18 |
FreeCAD