diff --git a/cadquery/freecad_impl/shapes.py b/cadquery/freecad_impl/shapes.py index 27b97a6..d0d14bb 100644 --- a/cadquery/freecad_impl/shapes.py +++ b/cadquery/freecad_impl/shapes.py @@ -62,6 +62,9 @@ def __init__(self, obj): self.wrapped = obj self.forConstruction = False + # Helps identify this solid through the use of an ID + self.label = "" + @classmethod def cast(cls, obj, forConstruction=False): "Returns the right type of wrapper, given a FreeCAD object" @@ -356,6 +359,9 @@ def __init__(self, obj, forConstruction=False): self.Y = obj.Y self.Z = obj.Z + # Helps identify this solid through the use of an ID + self.label = "" + def toTuple(self): return (self.X, self.Y, self.Z) @@ -381,6 +387,9 @@ def __init__(self, obj): FreeCADPart.Circle: 'CIRCLE' } + # Helps identify this solid through the use of an ID + self.label = "" + def geomType(self): t = type(self.wrapped.Curve) if self.edgetypes.has_key(t): @@ -476,6 +485,9 @@ def __init__(self, obj): """ self.wrapped = obj + # Helps identify this solid through the use of an ID + self.label = "" + @classmethod def combine(cls, listOfWires): """ @@ -546,6 +558,9 @@ def __init__(self, obj): FreeCADPart.Cone: 'CONE' } + # Helps identify this solid through the use of an ID + self.label = "" + def geomType(self): t = type(self.wrapped.Surface) if self.facetypes.has_key(t): @@ -602,6 +617,9 @@ def __init__(self, wrapped): """ self.wrapped = wrapped + # Helps identify this solid through the use of an ID + self.label = "" + @classmethod def makeShell(cls, listOfFaces): return Shell(FreeCADPart.makeShell([i.obj for i in listOfFaces])) @@ -614,6 +632,9 @@ def __init__(self, obj): """ self.wrapped = obj + # Helps identify this solid through the use of an ID + self.label = "" + @classmethod def isSolid(cls, obj): """ @@ -915,6 +936,9 @@ def __init__(self, obj): """ self.wrapped = obj + # Helps identify this solid through the use of an ID + self.label = "" + def Center(self): return self.Center()