pythonocc-core
pythonocc-core copied to clipboard
STEPControl_Reader lead to shape deformation
As mentioned in the topic,I use the demo to load my STEP file, but the shape of holes has changed. But, when I open it in FreeCAD, it go well. As we know, FreeCAD also use OCCT.
@tpaviot
today, I try to fix my model with the OCC.Core.ShapeFix package,and happy to find that it works in some degree. However, there still exist few problems, such as the holes are not cylinders. May be there are some other ways. There are my fix demo and picture。
`from OCC.Core.ShapeFix import ShapeFix_Shape
thePrec = 1e-7 theMaxTol = 1 theMintol = 1
aFixShape = ShapeFix_Shape() aFixShape.Init(blade_shape) aFixShape.SetPrecision(thePrec) aFixShape.SetMaxTolerance(theMaxTol) aFixShape.SetMinTolerance(theMintol)
aFixShape.Perform() aResult = aFixShape.Shape()`