1717
1818from OCC .TopoDS import TopoDS_Solid
1919
20- from Topology import Topo
21- from base import GlobalProperties , KbeObject
22- from shell import Shell
20+ from OCCUtils . Topology import Topo
21+ from OCCUtils . base import GlobalProperties , BaseObject
22+ from OCCUtils . shell import Shell
2323
2424
25- class Solid (TopoDS_Solid , KbeObject ):
25+ class Solid (TopoDS_Solid , BaseObject ):
2626 def __init__ (self , solid ):
2727 assert isinstance (solid , TopoDS_Solid ), 'need a TopoDS_Solid, got a %s' % solid .__class__
2828 assert not solid .IsNull ()
2929 super (Solid , self ).__init__ ()
30- KbeObject .__init__ (self , 'solid' )
30+ BaseObject .__init__ (self , 'solid' )
3131 # we need to copy the base shape using the following three
3232 # lines
3333 assert self .IsNull ()
@@ -38,39 +38,5 @@ def __init__(self, solid):
3838
3939 self .GlobalProperties = GlobalProperties (self )
4040
41- #=======================================================================
42- # Solid.boolean
43- #=======================================================================
44- def add (self , other_solid ):
45- '''adds another_solid to self
46- '''
47- raise NotImplementedError
48-
49- def cut (self , other_solid ):
50- '''cuts other_solid from self
51- '''
52- raise NotImplementedError
53-
54- def intersect (self , other_solid ):
55- '''common space of self and other_solid
56- '''
57- raise NotImplementedError
58-
5941 def shells (self ):
6042 return (Shell (sh ) for sh in Topo (self ))
61- #===========================================================================
62- # Solid.graphic
63- #===========================================================================
64-
65- @property
66- def color (self , color ):
67- '''color all the faces
68- '''
69- raise NotImplementedError
70-
71- @property
72- def tesselation (self , angle ):
73- '''descriptor of the parameter controlling the precision of the
74- tesselation
75- '''
76- raise NotImplementedError
0 commit comments