OCCT 7.4 related fixes

This commit is contained in:
adam-urbanczyk
2020-02-10 20:49:14 +01:00
parent f6f2e1648a
commit 5af879f640

View File

@ -195,6 +195,7 @@ class Shape(object):
upgrader = ShapeUpgrade_UnifySameDomain(
self.wrapped, True, True, True)
upgrader.AllowInternalEdges(True)
upgrader.Build()
return self.cast(upgrader.Shape())
@ -560,9 +561,6 @@ class Shape(object):
"""
fuse_op = BRepAlgoAPI_Fuse(self.wrapped, toFuse.wrapped)
fuse_op.RefineEdges()
fuse_op.FuseEdges()
# fuse_op.SetFuzzyValue(TOLERANCE)
fuse_op.Build()
return Shape.cast(fuse_op.Shape())
@ -1539,8 +1537,7 @@ class Compound(Shape, Mixin3D):
mgr = Font_FontMgr.GetInstance_s()
font = mgr.FindFont(TCollection_HAsciiString(font),
font_kind,
10)
font_kind)
builder = Font_BRepTextBuilder()
text_flat = Shape(builder.Perform(font.FontPath().ToCString(),