> > I would comment on the second part of your question : > Regarding the getNormal() method, the short answer is yes. To write clean > readable code, the only thing that is of importance (more so in python) is > to name your methods, variable with utmost care. Since getNormal() would > return a MVector in both cases (and here I am assuming that your > getCrossProduct() method returns a MVector) it is fine to write that code. > With the name "getNormal" you are making a promise that the method will > return a 'normal' (which here semantically means MVector), as long as you > keep that promise, it is acceptable by all means. >
Okay, while I understand what you are saying but (this may sounds stupid of me) when smooth is True, I thought it will return a MVector while False, it will return MPoint? Rather, how can I tell what does it returns? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2b8e970c-a83b-424c-b794-11939e87853e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.