Skip to content

Commit 5fd95e3

Browse files
committed
pylint over shell.py
1 parent 9bce8aa commit 5fd95e3

File tree

1 file changed

+5
-36
lines changed

1 file changed

+5
-36
lines changed

OCCUtils/shell.py

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,20 @@
1616
##along with pythonOCC. If not, see <http://www.gnu.org/licenses/>
1717

1818
from OCC.TopoDS import TopoDS_Shell
19+
from OCC.ShapeAnalysis import ShapeAnalysis_Shell
1920

20-
from Topology import Topo
21-
from base import KbeObject, GlobalProperties
21+
from OCCUtils.Topology import Topo
22+
from OCCUtils.base import BaseObject, GlobalProperties
2223

2324

24-
class DressUp(object):
25-
def __init__(self, instance):
26-
self.instance = instance
27-
28-
def fillet_vertex_distance(self, vertex, distance):
29-
'''fillets 3 edges at a corner
30-
'''
31-
pass
32-
33-
def fillet_edge_radius(self, edge, radius):
34-
'''fillets an edge
35-
'''
36-
pass
37-
38-
def chamfer_vertex_distance(self, vertex, distance):
39-
'''chamfer 3 edges at a corner
40-
'''
41-
pass
42-
43-
def chamfer_edge_angle(self, edge, angle):
44-
'''chamfers the faces on edge at angle
45-
'''
46-
pass
47-
48-
def chamfer_edge_distance_distance(self, edge, distance_this_face, distance_other_face):
49-
'''chamfers the face incident on edge at a given distance
50-
'''
51-
pass
52-
53-
54-
class Shell(TopoDS_Shell, KbeObject):
25+
class Shell(TopoDS_Shell, BaseObject):
5526
_n = 0
5627

5728
def __init__(self, shell):
5829
assert isinstance(shell, TopoDS_Shell), 'need a TopoDS_Shell, got a %s' % shell.__class__
5930
assert not shell.IsNull()
6031
super(Shell, self).__init__()
61-
KbeObject.__init__(self, 'shell')
32+
BaseObject.__init__(self, 'shell')
6233
# we need to copy the base shape using the following three
6334
# lines
6435
assert self.IsNull()
@@ -68,15 +39,13 @@ def __init__(self, shell):
6839
assert not self.IsNull()
6940

7041
self.GlobalProperties = GlobalProperties(self)
71-
self.DressUp = DressUp(self)
7242
self._n += 1
7343

7444
def analyse(self):
7545
"""
7646
7747
:return:
7848
"""
79-
from OCC.ShapeAnalysis import ShapeAnalysis_Shell
8049
ss = ShapeAnalysis_Shell(self)
8150
if ss.HasFreeEdges():
8251
bad_edges = [e for e in Topo(ss.BadEdges()).edges()]

0 commit comments

Comments
 (0)