1 # SPDX-FileCopyrightText: 2017 Alessandro Zomparelli
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 # --------------------------------- TISSUE ----------------------------------- #
6 # ------------------------------- version 0.3 -------------------------------- #
8 # Creates duplicates of selected mesh to active morphing the shape according #
11 # Alessandro Zomparelli #
14 # http://www.co-de-it.com/ #
15 # https://docs.blender.org/manual/en/latest/addons/mesh/tissue.html #
17 # ############################################################################ #
21 "author": "Alessandro Zomparelli",
22 "version": (0, 3, 70),
25 "description": "Tools for Computational Design",
27 "doc_url": "{BLENDER_MANUAL_URL}/addons/mesh/tissue.html",
28 "tracker_url": "https://github.com/alessandro-zomparelli/tissue/issues",
35 importlib
.reload(tessellate_numpy
)
36 importlib
.reload(tissue_properties
)
37 importlib
.reload(weight_tools
)
38 importlib
.reload(weight_reaction_diffusion
)
39 importlib
.reload(dual_mesh
)
40 importlib
.reload(lattice
)
41 importlib
.reload(uv_to_mesh
)
42 importlib
.reload(utils
)
43 importlib
.reload(config
)
44 importlib
.reload(material_tools
)
45 importlib
.reload(curves_tools
)
46 importlib
.reload(polyhedra
)
47 importlib
.reload(texture_reaction_diffusion
)
48 importlib
.reload(contour_curves
)
51 from . import tessellate_numpy
52 from . import tissue_properties
53 from . import weight_tools
54 from . import weight_reaction_diffusion
55 from . import dual_mesh
57 from . import uv_to_mesh
60 from . import material_tools
61 from . import curves_tools
62 from . import polyhedra
63 from . import texture_reaction_diffusion
64 from . import contour_curves
67 from bpy
.props
import PointerProperty
, CollectionProperty
, BoolProperty
71 config
.tissuePreferences
,
72 config
.tissue_install_numba
,
74 tissue_properties
.tissue_prop
,
75 tissue_properties
.tissue_tessellate_prop
,
76 tessellate_numpy
.tissue_tessellate
,
77 tessellate_numpy
.tissue_update_tessellate
,
78 tessellate_numpy
.tissue_update_tessellate_deps
,
79 tessellate_numpy
.TISSUE_PT_tessellate
,
80 tessellate_numpy
.tissue_rotate_face_left
,
81 tessellate_numpy
.tissue_rotate_face_right
,
82 tessellate_numpy
.tissue_rotate_face_flip
,
83 tessellate_numpy
.TISSUE_PT_tessellate_object
,
84 tessellate_numpy
.TISSUE_PT_tessellate_frame
,
85 tessellate_numpy
.TISSUE_PT_tessellate_component
,
86 tessellate_numpy
.TISSUE_PT_tessellate_thickness
,
87 tessellate_numpy
.TISSUE_PT_tessellate_direction
,
88 tessellate_numpy
.TISSUE_PT_tessellate_options
,
89 tessellate_numpy
.TISSUE_PT_tessellate_coordinates
,
90 tessellate_numpy
.TISSUE_PT_tessellate_rotation
,
91 tessellate_numpy
.TISSUE_PT_tessellate_selective
,
92 tessellate_numpy
.TISSUE_PT_tessellate_morphing
,
93 tessellate_numpy
.TISSUE_PT_tessellate_iterations
,
94 tessellate_numpy
.tissue_render_animation
,
95 tessellate_numpy
.tissue_remove
,
97 weight_tools
.face_area_to_vertex_groups
,
98 weight_tools
.vertex_colors_to_vertex_groups
,
99 weight_tools
.vertex_group_to_vertex_colors
,
100 weight_tools
.vertex_group_to_uv
,
101 weight_tools
.TISSUE_PT_weight
,
102 weight_tools
.TISSUE_PT_color
,
103 weight_tools
.weight_contour_mask
,
104 weight_tools
.weight_contour_displace
,
105 weight_tools
.harmonic_weight
,
106 weight_tools
.edges_deformation
,
107 weight_tools
.edges_bending
,
108 weight_tools
.weight_laplacian
,
109 weight_reaction_diffusion
.start_reaction_diffusion
,
110 weight_reaction_diffusion
.TISSUE_PT_reaction_diffusion
,
111 weight_reaction_diffusion
.TISSUE_PT_reaction_diffusion_performance
,
112 weight_reaction_diffusion
.TISSUE_PT_reaction_diffusion_vector_field
,
113 weight_reaction_diffusion
.TISSUE_PT_reaction_diffusion_weight
,
114 weight_reaction_diffusion
.TISSUE_PT_reaction_diffusion_cache
,
115 weight_reaction_diffusion
.reset_reaction_diffusion_weight
,
116 weight_tools
.formula_prop
,
117 weight_reaction_diffusion
.reaction_diffusion_prop
,
118 weight_tools
.weight_formula
,
119 weight_tools
.update_weight_formula
,
120 weight_tools
.curvature_to_vertex_groups
,
121 weight_tools
.weight_formula_wiki
,
122 weight_tools
.tissue_weight_distance
,
123 weight_tools
.random_weight
,
124 weight_reaction_diffusion
.bake_reaction_diffusion
,
125 weight_reaction_diffusion
.reaction_diffusion_free_data
,
126 weight_tools
.tissue_weight_streamlines
,
128 contour_curves
.tissue_weight_contour_curves_pattern
,
129 contour_curves
.tissue_update_contour_curves
,
130 contour_curves
.tissue_contour_curves_prop
,
131 contour_curves
.TISSUE_PT_contour_curves
,
134 dual_mesh
.dual_mesh_tessellated
,
136 lattice
.lattice_along_surface
,
138 material_tools
.random_materials
,
139 material_tools
.weight_to_materials
,
141 curves_tools
.tissue_to_curve_prop
,
142 curves_tools
.tissue_convert_to_curve
,
143 curves_tools
.tissue_update_convert_to_curve
,
144 curves_tools
.TISSUE_PT_convert_to_curve
,
146 uv_to_mesh
.uv_to_mesh
,
148 polyhedra
.polyhedral_wireframe
,
149 polyhedra
.tissue_update_polyhedra
,
150 polyhedra
.tissue_polyhedra_prop
,
151 polyhedra
.TISSUE_PT_polyhedra_object
,
153 texture_reaction_diffusion
.tex_reaction_diffusion_prop
,
154 texture_reaction_diffusion
.start_tex_reaction_diffusion
,
155 texture_reaction_diffusion
.reset_tex_reaction_diffusion
,
156 texture_reaction_diffusion
.TISSUE_PT_tex_reaction_diffusion
,
157 texture_reaction_diffusion
.TISSUE_PT_tex_reaction_diffusion_images
161 from bpy
.utils
import register_class
163 bpy
.utils
.register_class(cls
)
164 #bpy.utils.register_module(__name__)
165 bpy
.types
.Object
.tissue
= PointerProperty(
166 type=tissue_properties
.tissue_prop
168 bpy
.types
.Object
.tissue_tessellate
= PointerProperty(
169 type=tissue_properties
.tissue_tessellate_prop
171 bpy
.types
.Object
.tissue_polyhedra
= PointerProperty(
172 type=polyhedra
.tissue_polyhedra_prop
174 bpy
.types
.Object
.tissue_to_curve
= PointerProperty(
175 type=curves_tools
.tissue_to_curve_prop
177 bpy
.types
.Object
.tissue_contour_curves
= PointerProperty(
178 type=contour_curves
.tissue_contour_curves_prop
180 bpy
.types
.Object
.formula_settings
= CollectionProperty(
181 type=weight_tools
.formula_prop
183 bpy
.types
.Object
.reaction_diffusion_settings
= PointerProperty(
184 type=weight_reaction_diffusion
.reaction_diffusion_prop
186 bpy
.types
.Object
.tex_reaction_diffusion_settings
= PointerProperty(
187 type=texture_reaction_diffusion
.tex_reaction_diffusion_prop
190 bpy
.app
.handlers
.frame_change_post
.append(weight_reaction_diffusion
.reaction_diffusion_def
)
191 bpy
.app
.handlers
.frame_change_post
.append(texture_reaction_diffusion
.tex_reaction_diffusion_def
)
194 from bpy
.utils
import unregister_class
196 bpy
.utils
.unregister_class(cls
)
198 del bpy
.types
.Object
.tissue_tessellate
201 if __name__
== "__main__":