-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
66 lines (57 loc) · 2.56 KB
/
__init__.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
62
63
64
65
66
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#################################################
# -------------------
# Blender for Science
# -------------------
# Add-on: blendmsh
# Author: Senthur Raj (Github: imsenthur)
# Description: Blendmsh is a bridge between Blender 2.80+ and Gmsh, a fast and light 3D finite element mesh generator.
# https://github.com/blender-for-science/blendmsh
#################################################
bl_info = {
"name" : "blendmsh",
"author" : "Senthur Raj",
"description" : "Blendmsh is a bridge between Blender 2.80+ and Gmsh, a fast and light 3D finite element mesh generator.",
"blender" : (2, 80, 0),
"version" : (1, 1, 0),
"location" : "View3D",
"warning" : "",
"wiki_url" : "https://github.com/blender-for-science/blendmsh",
"tracker_url" : "https://github.com/blender-for-science/blendmsh",
"category" : "Mesh"
}
import bpy
from .properties import BlendmshProperties
from .panel import BLENDMSH_PT_Panel
from .processor import BLENDMSH_OT_Meshinit, BLENDMSH_OT_Meshproc, BLENDMSH_OT_Physicalgroups
from .preferences import BlendmshPreferences, BlendmshInstaller
def register():
bpy.utils.register_class(BlendmshPreferences)
bpy.utils.register_class(BlendmshInstaller)
bpy.utils.register_class(BlendmshProperties)
bpy.utils.register_class(BLENDMSH_PT_Panel)
bpy.types.Scene.blendmsh = bpy.props.PointerProperty(type=BlendmshProperties)
bpy.utils.register_class(BLENDMSH_OT_Meshinit)
bpy.utils.register_class(BLENDMSH_OT_Meshproc)
bpy.utils.register_class(BLENDMSH_OT_Physicalgroups)
def unregister():
bpy.utils.unregister_class(BlendmshPreferences)
bpy.utils.unregister_class(BlendmshInstaller)
bpy.utils.unregister_class(BlendmshProperties)
bpy.utils.unregister_class(BLENDMSH_PT_Panel)
bpy.utils.unregister_class(BLENDMSH_OT_Meshinit)
bpy.utils.unregister_class(BLENDMSH_OT_Meshproc)
bpy.utils.unregister_class(BLENDMSH_OT_Physicalgroups)
if __name__ == "__main__":
register()