Code: Select all
>>> shape=Part.Shape()
>>> shape.read('step_files/milled_pocket.STEP')
...
Reading STEP file......
>>> shape.BoundBox.ZMin
-2.702513458301918
>>> min(v.Z for v in shape.Vertexes)
0.0
>>> shape.BoundBox.ZMax
12.227513458301917
>>> max(v.Z for v in shape.Vertexes)
6.35
Does anyone know why this discrepancy exists? Is there any way to correct for it? It is important for my application to correctly determine part thickness, so please let me know if you have any ideas to handle this.
Here are my specs. I'm using my distro's FreeCAD package, version 0.16.6712-3 right now.
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.Unknown
Build type: Release
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1