C# Class LSystem, A-Study-in-Composition

Mostrar archivo Open project: mortennobel/A-Study-in-Composition Class Usage Examples

Public Properties

Property Type Description
branches UnityEngine.MeshFilter
branchesMat Material
iter int
leaves UnityEngine.MeshFilter
leavesMat Material
seed int
smoothSeed float
vertCount int
vertLeafCount int

Public Methods

Method Description
AddCone ( Matrix4x4 m, float l, float w0, float w1, float dist ) : void
AddLeaf ( Matrix4x4 m, float len, float width, float dist ) : void
Build ( ) : Mesh[]
BuildGameObject ( ) : GameObject
Eval ( Vector2 v ) : float
ExpandRules ( ) : void
Interpret ( Mesh &meshBranches, Mesh &meshLeaves ) : void
OnGUI ( ) : void
PostprocessMesh ( Mesh mesh ) : void
ResetRandom ( int seed1 ) : void
SetupMeshOnGameObject ( GameObject go, Mesh mesh, Material material ) : void
Start ( ) : void
Update ( ) : void
UpdateTree ( ) : void

Method Details

AddCone() public method

public AddCone ( Matrix4x4 m, float l, float w0, float w1, float dist ) : void
m Matrix4x4
l float
w0 float
w1 float
dist float
return void

AddLeaf() public method

public AddLeaf ( Matrix4x4 m, float len, float width, float dist ) : void
m Matrix4x4
len float
width float
dist float
return void

Build() public method

public Build ( ) : Mesh[]
return Mesh[]

BuildGameObject() public method

public BuildGameObject ( ) : GameObject
return GameObject

Eval() public method

public Eval ( Vector2 v ) : float
v Vector2
return float

ExpandRules() public method

public ExpandRules ( ) : void
return void

Interpret() public method

public Interpret ( Mesh &meshBranches, Mesh &meshLeaves ) : void
meshBranches Mesh
meshLeaves Mesh
return void

OnGUI() public method

public OnGUI ( ) : void
return void

PostprocessMesh() public method

public PostprocessMesh ( Mesh mesh ) : void
mesh Mesh
return void

ResetRandom() public static method

public static ResetRandom ( int seed1 ) : void
seed1 int
return void

SetupMeshOnGameObject() public method

public SetupMeshOnGameObject ( GameObject go, Mesh mesh, Material material ) : void
go GameObject
mesh Mesh
material Material
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateTree() public method

public UpdateTree ( ) : void
return void

Property Details

branches public_oe property

public MeshFilter,UnityEngine branches
return UnityEngine.MeshFilter

branchesMat public_oe property

public Material branchesMat
return Material

iter public_oe property

public int iter
return int

leaves public_oe property

public MeshFilter,UnityEngine leaves
return UnityEngine.MeshFilter

leavesMat public_oe property

public Material leavesMat
return Material

seed public_oe property

public int seed
return int

smoothSeed public_oe property

public float smoothSeed
return float

vertCount public_oe property

public int vertCount
return int

vertLeafCount public_oe property

public int vertLeafCount
return int