When using polygon objects and quadric objects in an application I like to handle transformation more generic. Currently, there is a Transformation-property in both base classes: Quadric and Polygon. If I want to transform those objects, I have to differentiate between those in code. The Transformation-property should be in the common base class SceneElement, so it does not matter if I handle a polygon or quadric in my code.
Is there any reason why the Quadric-class does not have a setter for the Transformation-property?
When using polygon objects and quadric objects in an application I like to handle transformation more generic. Currently, there is a Transformation-property in both base classes: Quadric and Polygon. If I want to transform those objects, I have to differentiate between those in code. The Transformation-property should be in the common base class SceneElement, so it does not matter if I handle a polygon or quadric in my code.
Is there any reason why the Quadric-class does not have a setter for the Transformation-property?