-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
panel.py
62 lines (45 loc) · 1.77 KB
/
panel.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import bpy
class BLENDMSH_PT_Panel(bpy.types.Panel):
bl_idname = 'BLENDMSH_PT_panel'
bl_label = 'blendmsh'
bl_category = 'blendmsh'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
def draw(self, context):
layout = self.layout
scene = context.scene
row = layout.row()
rowsub = layout.row(align=True)
rowsub.prop(scene.blendmsh, 'workspace_path')
col = layout.column()
col.operator('blendmsh.meshinit', text='Initialize')
row = layout.row()
row.label(text=" ")
rowsub = layout.row(align=True)
rowsub.prop(scene.blendmsh, "n_physicalgroups")
rowsub.operator('blendmsh.physicalgroups', icon='ADD')
row = layout.row()
row.label(text=" ")
row = layout.row(align=True)
row.prop(scene.blendmsh, "element_order", icon='NONE', expand=True,
slider=True, toggle=False, icon_only=False, event=False,
full_event=False, emboss=True)
rowsub = layout.row(align=True)
rowsub.prop(scene.blendmsh, 'algorithm')
rowsub = layout.row(align=True)
rowsub.prop(scene.blendmsh, "cl_max")
rowsub = layout.row(align=True)
rowsub.prop(scene.blendmsh, "mesh_dimension", expand=True, slider=True,
toggle=False, icon_only=False, emboss=True)
row = layout.row(align=True)
row.prop(scene.blendmsh, 'output_file_format')
row = layout.row()
row.label(text=" ")
col = layout.column()
col.operator('blendmsh.meshproc', text='Mesh')
row = layout.row()
row.label(text=" ")
row = layout.row(align=True)
row.alignment = 'RIGHT'
row.label(text="Made with")
row.label(icon='FUND')