What is wrong with defining a class constructor like this:
I am trying to construct two different objects based on whether input d stays None or gets value assigned.
class MSMeshFace(object):
def __init__(self, a= None, b= None, c= None, d= None):
self.a = a
self.b = b
self.c = c
self.d = d
if self.d == None:
triangleFace = MSMeshFace(self.a, self.b, self.c)
self.count = 3
return triangleFace
else:
quadFace = MSMeshFace(self.a, self.b, self.c, self.d)
self.count = 4
return quadFace
returnvalues from an init function. Well, you can, but the result gets thrown away.countbased on whether or notdis supplied?