(self, m: str)
return self
Used to add one of the 4 single-character modifiers:
        #(debug) !(root) %(background) or *(disable)
Used to add one of the 4 single-character modifiers:
        #(debug) !(root) %(background) or *(disable)
Used to add one of the 4 single - character modifiers : # ( debug ) ! ( root ) % ( background ) or * ( disable )
def set_modifier(self, m: str) -> "OpenSCADObject":
        """
        Used to add one of the 4 single-character modifiers:
        #(debug) !(root) %(background) or *(disable)
        """
        string_vals = {'disable': '*',
                       'debug': '#',
                       'background': '%',
                       'root': '!',
                       '*': '*',
                       '#': '#',
                       '%': '%',
                       '!': '!'}

        self.modifier = string_vals.get(m.lower(), '')
        return self
def set_modifier ( self , m : str ) -> "OpenSCADObject" : string_vals = { 'disable' : '*' , 'debug' : '#' , 'background' : '%' , 'root' : '!' , '*' : '*' , '#' : '#' , '%' : '%' , '!' : '!' } self . modifier = string_vals . get ( m . lower ( ) , '' ) return self