Extensions:2.6/Py/Scripts/3D interaction/snowflake generator

提供: wiki
移動先: 案内検索
Snowflake Generator
Add Mesh: Snowflake.
UI location AddMesh
Version 0.0.1 Author(s) Tamir Lousky
Blender 2.6.9 License GPL


Executable information
File name snowflake_generator.py
Current version download https://github.com/Tlousky/blender_scripts/blob/master/snowflake_generator.py


Links https://github.com/Tlousky/blender_scripts/wiki/Snowflake-Generator


Installation and usage video tutorial


Installation

  • Open Blender, and go to the User Preferences Window --> Addons Tab --> Install from File.
  • Open the downloaded script.
  • Check "V" in the checkbox on the right to enable the script.
  • Press "Save User Settings" if you want the script to be loaded by default.


Description

The snowflake generator creates Koch Snowflakes shapes, represented as profile / outline meshes (edges and verts only, with no faces).

Snowflakes.jpg



Usage

Either go to the Add-->Mes menu at the info panel's header, or simply open the add mesh menu through the Shift/a->Mesh shortcut in the 3D view, then choose "Snowflake" from either menu.

After creating a snowflake, you'll be able to edit its parameters in the operator editing section at the bottom of the Tools Panel. The tools panel is located at the left side of the 3D View (open by tapping **T** on your keyboard if you can't see it).


Add snowflake demo.jpg



Script parameters

テンプレート:Radius: the size of the initial polygon from which the snowflake is generated.

Minimum: 0.1

Maximum: 100

テンプレート:Number of sides: The number of sides (edges) of the initial polygon, from which the snowflake is generated.

Minimum value: 3

Maximum value: 32

テンプレート:Iterations: Number of fractal subdivisions (in each one, every preexisting edge is subdivided and gets an additional triangle added at its center). Currently limited to 6 iterations, since more than that will likely take forever to calculate and might crash Blender.

Minimum: 1

Maximum: 6


Example of Mesh created based on a snowflake edge-loop

More complex snowflake.jpg