FrameIT
ShapeGenerator Class Reference
Inheritance diagram for ShapeGenerator:
CircleGenerator ConeGenerator PlaneGenerator TorusGenerator PrismGenerator

Static Public Member Functions

static Vector3[] GetUnweightedNormals (Mesh mesh)
 

Public Attributes

List< MeshFilter > Meshs
 
List< float > NormalOffset
 
bool AlternateNormals = false
 

Protected Member Functions

void GenerateShapeForAll ()
 
abstract Vector3[] int[] triangles GenerateTopology ()
 

Static Protected Member Functions

static Mesh CreateMesh ((Vector3[] vertices, int[] triangles) meshValues)
 
static Vector3[] GetCirclePoints (float circleRadius, int pointCount)
 
static Vector3[] GetCirclePoints (float circleRadius, int pointCount, Vector3 offset)
 
static Vector3[] int[] triangles CreatePlane (Vector3[] vertices, bool invert=false)
 
static Vector3[] int[] triangles CreatePrism ((Vector3[] vertices, int[] triangles) top,(Vector3[] vertices, int[] triangles) bottom, int[] boundary_top, int[] boundary_bottom)
 

Protected Attributes

abstract Vector3[] vertices
 

Static Protected Attributes

static Vector3[] vertices
 Creates triangles for a set of vertecies of a flat, convex shape More...
 

Private Member Functions

void Awake ()
 

Member Function Documentation

◆ Awake()

void ShapeGenerator.Awake ( )
private

◆ CreateMesh()

static Mesh ShapeGenerator.CreateMesh ( (Vector3[] vertices, int[] triangles)  meshValues)
staticprotected

◆ CreatePlane()

static Vector3[] int[] triangles ShapeGenerator.CreatePlane ( Vector3[]  vertices,
bool  invert = false 
)
staticprotected

◆ CreatePrism()

static Vector3[] int[] triangles ShapeGenerator.CreatePrism ( (Vector3[] vertices, int[] triangles)  top,
(Vector3[] vertices, int[] triangles)  bottom,
int[]  boundary_top,
int[]  boundary_bottom 
)
staticprotected

◆ GenerateShapeForAll()

void ShapeGenerator.GenerateShapeForAll ( )
protected

◆ GenerateTopology()

abstract Vector3[] int[] triangles ShapeGenerator.GenerateTopology ( )
protected

◆ GetCirclePoints() [1/2]

static Vector3[] ShapeGenerator.GetCirclePoints ( float  circleRadius,
int  pointCount 
)
staticprotected

◆ GetCirclePoints() [2/2]

static Vector3[] ShapeGenerator.GetCirclePoints ( float  circleRadius,
int  pointCount,
Vector3  offset 
)
staticprotected

◆ GetUnweightedNormals()

static Vector3[] ShapeGenerator.GetUnweightedNormals ( Mesh  mesh)
static

Member Data Documentation

◆ AlternateNormals

bool ShapeGenerator.AlternateNormals = false

◆ Meshs

List<MeshFilter> ShapeGenerator.Meshs

◆ NormalOffset

List<float> ShapeGenerator.NormalOffset

◆ vertices [1/2]

abstract Vector3 [] ShapeGenerator.vertices
protected

◆ vertices [2/2]

Vector3 [] ShapeGenerator.vertices
staticprotected

Creates triangles for a set of vertecies of a flat, convex shape

Parameters
points
invert
Returns

The documentation for this class was generated from the following file: