Beispiel #1
0
    def panel_param(self, obj, validator = None):
        ret = VtableElement.panel_param(self, obj, validator = validator)
        ret[3] = list(ret[3])
        ret[3][0]['choices'].append('By 3 points') 
        ret[3][0]['choices'].append('Face parallel and point')
        elp3 = [["Point 1",  None, 0,  {}],
                ["Point 2",    None, 0,  {}],
                ["Point 3",    None, 0,  {}],]
        elp4 = [["Face",  None, 0,  {}],
                ["Point",  None, 0,  {}],]
        ret[3].append({'elp': elp3})
        ret[3].append({'elp': elp4})

        return ret    
Beispiel #2
0
    def panel_param(self, obj, validator = None):
        ret = VtableElement.panel_param(self, obj, validator = validator)
        ret[3] = list(ret[3])
        ret[3][0]['choices'].append('By two points') 
        ret[3][0]['choices'].append('Normal')
        ret[3][0]['choices'].append('Normal to point')
        elp3 = [["Point(from)",  None, 0,  {}],
                ["Point(to)",    None, 0,  {}],
                [None, True, 3,  {"text": "Use distance between points"}],
                [None, True, 3,  {"text": "Reverse direction"}],]             
        elp4 = [ [None, True, 3,  {"text": "Reverse direction"}],
                 [None,  "(Note) Face must be flat-plane", 2,  {}],]
        elp5 = [ ["Point(to)",    None, 0,  {}],
                 [None, True, 3,  {"text": "Reverse direction"}],                    
                 [None,  "(Note) Face must be flat-plane. Length below is mulitplier", 2,  {}],]                
        ret[3].append({'elp': elp3})
        ret[3].append({'elp': elp4})
        ret[3].append({"elp": elp5})

        return ret