C# Class PersistentTrails.MeshFactory

Mostra file Open project: GrJo/KSPPersistentTrails Class Usage Examples

Public Methods

Method Description
createCone ( float radius, float height, int approx ) : Mesh
createSphere ( ) : Mesh
makeMeshGameObject ( Mesh &mesh, string name ) : GameObject

Private Methods

Method Description
getOrCreateMiddlePoint ( int p1, int p2, List &vertices, int>.Dictionary &midPointCache ) : int

Method Details

createCone() public static method

public static createCone ( float radius, float height, int approx ) : Mesh
radius float
height float
approx int
return UnityEngine.Mesh

createSphere() public static method

public static createSphere ( ) : Mesh
return UnityEngine.Mesh

makeMeshGameObject() public static method

public static makeMeshGameObject ( Mesh &mesh, string name ) : GameObject
mesh UnityEngine.Mesh
name string
return UnityEngine.GameObject