pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

STEPControl_Reader lead to shape deformation

Open linbeijianbaoxia opened this issue 2 years ago • 2 comments

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. 36c2d0778d9bc3693dc9d490554958d 9b564aacc503aefb1f96575c1f4a869 @tpaviot

linbeijianbaoxia avatar Mar 03 '22 07:03 linbeijianbaoxia

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()`

image image

linbeijianbaoxia avatar Mar 07 '22 13:03 linbeijianbaoxia