|
8 | 8 | import numpy as np |
9 | 9 | from OCC.BRep import BRep_Tool, BRep_Builder, BRep_Tool_Curve |
10 | 10 | from OCC.BRepAlgo import brepalgo_IsValid |
11 | | -from OCC.BRepBuilderAPI import (BRepBuilderAPI_MakeEdge, |
12 | | - BRepBuilderAPI_MakeFace, BRepBuilderAPI_NurbsConvert, |
13 | | - BRepBuilderAPI_MakeWire, BRepBuilderAPI_Sewing) |
| 11 | +from OCC.BRepBuilderAPI import ( |
| 12 | + BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeFace, |
| 13 | + BRepBuilderAPI_NurbsConvert, BRepBuilderAPI_MakeWire, BRepBuilderAPI_Sewing) |
14 | 14 | from OCC.BRepOffsetAPI import BRepOffsetAPI_FindContigousEdges |
15 | 15 | from OCC.Display.SimpleGui import init_display |
16 | 16 | from OCC.GeomConvert import (geomconvert_SurfaceToBSplineSurface, |
17 | | - geomconvert_CurveToBSplineCurve) |
| 17 | + geomconvert_CurveToBSplineCurve) |
18 | 18 | from OCC.gp import gp_Pnt, gp_XYZ |
19 | 19 | from OCC.Precision import precision_Confusion |
20 | 20 | from OCC.ShapeAnalysis import ShapeAnalysis_WireOrder |
21 | 21 | from OCC.ShapeFix import ShapeFix_ShapeTolerance, ShapeFix_Shell |
22 | 22 | from OCC.StlAPI import StlAPI_Writer |
23 | 23 | from OCC.TColgp import TColgp_Array1OfPnt, TColgp_Array2OfPnt |
24 | 24 | from OCC.TopAbs import (TopAbs_FACE, TopAbs_EDGE, TopAbs_WIRE, TopAbs_FORWARD, |
25 | | - TopAbs_SHELL) |
| 25 | + TopAbs_SHELL) |
26 | 26 | from OCC.TopExp import TopExp_Explorer, topexp |
27 | | -from OCC.TopoDS import (topods_Face, TopoDS_Compound, topods_Shell, |
28 | | - topods_Edge, topods_Wire, topods, TopoDS_Shape) |
| 27 | +from OCC.TopoDS import (topods_Face, TopoDS_Compound, topods_Shell, topods_Edge, |
| 28 | + topods_Wire, topods, TopoDS_Shape) |
29 | 29 | from matplotlib import pyplot |
30 | 30 | from mpl_toolkits import mplot3d |
31 | 31 | from stl import mesh |
@@ -76,9 +76,9 @@ def load_shape_from_file(self, filename): |
76 | 76 |
|
77 | 77 | Not implemented, it has to be implemented in subclasses. |
78 | 78 | """ |
79 | | - raise NotImplementedError( |
80 | | - 'Subclass must implement abstract method' |
81 | | - '{}.load_shape_from_file'.format(self.__class__.__name__)) |
| 79 | + raise NotImplementedError('Subclass must implement abstract method' |
| 80 | + '{}.load_shape_from_file'.format( |
| 81 | + self.__class__.__name__)) |
82 | 82 |
|
83 | 83 | def parse(self, filename): |
84 | 84 | """ |
@@ -282,7 +282,8 @@ def parse_face(topo_face): |
282 | 282 |
|
283 | 283 | :param Face topo_face: the input Face. |
284 | 284 |
|
285 | | - :return: control points of the `Face`, control points related to `Edges`. |
| 285 | + :return: control points of the `Face`, control points related to |
| 286 | + `Edges`. |
286 | 287 | :rtype: tuple(numpy.ndarray, list) |
287 | 288 |
|
288 | 289 | """ |
|
0 commit comments