1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
19 # --------------------------------- TISSUE ----------------------------------- #
20 # ------------------------------- version 0.3 -------------------------------- #
22 # Creates duplicates of selected mesh to active morphing the shape according #
25 # Alessandro Zomparelli #
28 # http://www.co-de-it.com/ #
29 # http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Mesh/Tissue #
31 # ############################################################################ #
35 "author": "Alessandro Zomparelli (Co-de-iT)",
36 "version": (0, 3, 25),
37 "blender": (2, 80, 0),
38 "location": "Sidebar > Edit Tab",
39 "description": "Tools for Computational Design",
41 "doc_url": "https://github.com/alessandro-zomparelli/tissue/wiki",
42 "tracker_url": "https://github.com/alessandro-zomparelli/tissue/issues",
49 importlib
.reload(tessellate_numpy
)
50 importlib
.reload(colors_groups_exchanger
)
51 importlib
.reload(dual_mesh
)
52 importlib
.reload(lattice
)
53 importlib
.reload(uv_to_mesh
)
54 importlib
.reload(utils
)
57 from . import tessellate_numpy
58 from . import colors_groups_exchanger
59 from . import dual_mesh
61 from . import uv_to_mesh
65 from bpy
.props
import PointerProperty
, CollectionProperty
, BoolProperty
68 tessellate_numpy
.tissue_tessellate_prop
,
69 tessellate_numpy
.tessellate
,
70 tessellate_numpy
.update_tessellate
,
71 tessellate_numpy
.TISSUE_PT_tessellate
,
72 tessellate_numpy
.rotate_face
,
73 tessellate_numpy
.TISSUE_PT_tessellate_object
,
75 colors_groups_exchanger
.face_area_to_vertex_groups
,
76 colors_groups_exchanger
.vertex_colors_to_vertex_groups
,
77 colors_groups_exchanger
.vertex_group_to_vertex_colors
,
78 colors_groups_exchanger
.TISSUE_PT_weight
,
79 colors_groups_exchanger
.TISSUE_PT_color
,
80 colors_groups_exchanger
.weight_contour_curves
,
81 colors_groups_exchanger
.weight_contour_mask
,
82 colors_groups_exchanger
.weight_contour_displace
,
83 colors_groups_exchanger
.harmonic_weight
,
84 colors_groups_exchanger
.edges_deformation
,
85 colors_groups_exchanger
.edges_bending
,
86 colors_groups_exchanger
.weight_laplacian
,
87 colors_groups_exchanger
.reaction_diffusion
,
88 colors_groups_exchanger
.start_reaction_diffusion
,
89 colors_groups_exchanger
.TISSUE_PT_reaction_diffusion
,
90 colors_groups_exchanger
.reset_reaction_diffusion_weight
,
91 colors_groups_exchanger
.formula_prop
,
92 colors_groups_exchanger
.reaction_diffusion_prop
,
93 colors_groups_exchanger
.weight_formula
,
94 colors_groups_exchanger
.curvature_to_vertex_groups
,
95 colors_groups_exchanger
.weight_formula_wiki
,
98 dual_mesh
.dual_mesh_tessellated
,
100 lattice
.lattice_along_surface
,
102 uv_to_mesh
.uv_to_mesh
106 from bpy
.utils
import register_class
108 bpy
.utils
.register_class(cls
)
109 #bpy.utils.register_module(__name__)
110 bpy
.types
.Object
.tissue_tessellate
= PointerProperty(
111 type=tessellate_numpy
.tissue_tessellate_prop
113 bpy
.types
.Object
.formula_settings
= CollectionProperty(
114 type=colors_groups_exchanger
.formula_prop
116 bpy
.types
.Object
.reaction_diffusion_settings
= PointerProperty(
117 type=colors_groups_exchanger
.reaction_diffusion_prop
119 # colors_groups_exchanger
120 bpy
.app
.handlers
.frame_change_post
.append(colors_groups_exchanger
.reaction_diffusion_def
)
121 #bpy.app.handlers.frame_change_post.append(tessellate_numpy.anim_tessellate)
124 from bpy
.utils
import unregister_class
126 bpy
.utils
.unregister_class(cls
)
127 #tessellate_numpy.unregister()
128 #colors_groups_exchanger.unregister()
129 #dual_mesh.unregister()
130 #lattice.unregister()
131 #uv_to_mesh.unregister()
133 del bpy
.types
.Object
.tissue_tessellate
136 if __name__
== "__main__":