# -*- coding: utf-8 -*-
import openpyscad.base as base


__all__ = ["Translate", "Rotate", "Scale", "Resize", "Mirror", "Color", "Offset", "Hull", "Minkowski", "Linear_Extrude"]


# Transformations
class Translate(base.BaseObject):
    pass


class Rotate(base.BaseObject):
    pass


class Scale(base.BaseObject):
    pass


class Resize(base.BaseObject):
    pass


class Mirror(base.BaseObject):
    pass


class Color(base.BaseObject):
    pass


class Offset(base.BaseObject):

    def _validate_append(self, obj):
        from .shapes_2d import Shape2dObject
        if not isinstance(obj, Shape2dObject):
            raise TypeError("Appended object must be a instance of Shape2dObject.")


class Hull(base.BaseObject):
    pass


class Minkowski(base.BaseObject):
    pass


class Linear_Extrude(base.BaseObject):
    pass

@@ -803,29 +803,238 @@
 e(base.BaseObject):%0A    
-pass
+def _validate_append(self, obj):%0A        from .shapes_2d import Shape2dObject%0A        if not isinstance(obj, Shape2dObject):%0A            raise TypeError(%22Appended object must be a instance of Shape2dObject.%22)%0A    
 %0A

check validate 2d object for linear_extrude