Detailed Description

This generates an extruded path.

Inheritance diagram for Blaze.MeshBufferExtruded:
Blaze.PointReceiver

Public Member Functions

 MeshBufferExtruded (Transform parent)
 
void CreateGameObject (Transform parent)
 
void SetMaterial (Material material)
 Sets the material for this mesh. More...
 
int GetVertCount (VectorPath path, out int triCount)
 Gets the number of verts/tris to use. More...
 
void AddMesh (VectorPath path, float xOffset, float yOffset, Triangulator triangulator)
 
void PaintColours (Color32 front, Color32 back, Color32 sides)
 
void BuildCube (Vector3 a, Vector3 b, Vector3 c, Vector3 d)
 
void AddPoint (float x, float y)
 
void MoveTo (float x, float y)
 
void SetActive (bool active)
 
void Destroy ()
 
void RequireSize (int verts, int tris)
 
void Flush ()
 

Public Attributes

float XScaleFactor =1f
 A number to scale the mesh by. More...
 
float YScaleFactor =1f
 A number to scale the mesh by. More...
 
float XOffset
 A number to offset the mesh by on x. More...
 
float YOffset
 A number to offset the mesh by on y. More...
 
Mesh Mesh
 The underlying unity mesh. More...
 
int TotalVertices
 The total number of verts being used. Note that it's not necessarily the same as Vertices.Length. More...
 
Vector3[] Vertices
 The computed vertices. More...
 
Color32[] Colours
 The vertex colour set. More...
 
int[] Triangles
 Triangle set. More...
 
int CurrentVertex
 Current vertex progress. More...
 
int CurrentTriangle
 Current triangle progress. More...
 
float ExtrudeAmount =0.5f
 
bool Winding =true
 
UnityEngine.Color FrontColor
 The colour of the front face. More...
 
UnityEngine.Color BackColor
 The colour of the back face. More...
 
UnityEngine.Color SideColor
 The colour of the sides. More...
 

Package Attributes

GameObject Gameobject
 The gameobject the mesh is attached to. More...
 

Properties

float SampleDistance [get, set]
 
- Properties inherited from Blaze.PointReceiver
float SampleDistance [get, set]
 

Private Attributes

bool CloseBeforeThis =true
 True if there is a close before the current node. More...
 
bool IsClosing
 Is the current rendering node a close? More...
 
float CloseX
 The close x coordinate. More...
 
float CloseY
 The close y coordinate. More...
 
float PreviousX
 The previous x coordinate. More...
 
float PreviousY
 The previous y coordinate. More...
 
int StartIndex
 Vertex index of the "first" tent on a path. More...
 
bool Moved =true
 True if a MoveTo just occured. More...
 
MoveFromPoint LatestMoveFrom
 The stack of non-closed MoveTo nodes. More...
 
float CurrentAccuracy
 The current curve sampling accuracy. More...
 
Triangulator Triangulator =null
 
TriangulationVertex FirstInContour
 
TriangulationVertex LastInContour
 

Constructor & Destructor Documentation

Blaze.MeshBufferExtruded.MeshBufferExtruded ( Transform  parent)
inline

Member Function Documentation

void Blaze.MeshBufferExtruded.AddMesh ( VectorPath  path,
float  xOffset,
float  yOffset,
Triangulator  triangulator 
)
inline
void Blaze.MeshBufferExtruded.AddPoint ( float  x,
float  y 
)
inline

Implements Blaze.PointReceiver.

void Blaze.MeshBufferExtruded.BuildCube ( Vector3  a,
Vector3  b,
Vector3  c,
Vector3  d 
)
inline
void Blaze.MeshBufferExtruded.CreateGameObject ( Transform  parent)
inline
void Blaze.MeshBufferExtruded.Destroy ( )
inline
void Blaze.MeshBufferExtruded.Flush ( )
inline
int Blaze.MeshBufferExtruded.GetVertCount ( VectorPath  path,
out int  triCount 
)
inline

Gets the number of verts/tris to use.

void Blaze.MeshBufferExtruded.MoveTo ( float  x,
float  y 
)
inline

Implements Blaze.PointReceiver.

void Blaze.MeshBufferExtruded.PaintColours ( Color32  front,
Color32  back,
Color32  sides 
)
inline
void Blaze.MeshBufferExtruded.RequireSize ( int  verts,
int  tris 
)
inline
void Blaze.MeshBufferExtruded.SetActive ( bool  active)
inline
void Blaze.MeshBufferExtruded.SetMaterial ( Material  material)
inline

Sets the material for this mesh.

Member Data Documentation

UnityEngine.Color Blaze.MeshBufferExtruded.BackColor

The colour of the back face.

bool Blaze.MeshBufferExtruded.CloseBeforeThis =true
private

True if there is a close before the current node.

float Blaze.MeshBufferExtruded.CloseX
private

The close x coordinate.

float Blaze.MeshBufferExtruded.CloseY
private

The close y coordinate.

Color32 [] Blaze.MeshBufferExtruded.Colours

The vertex colour set.

float Blaze.MeshBufferExtruded.CurrentAccuracy
private

The current curve sampling accuracy.

int Blaze.MeshBufferExtruded.CurrentTriangle

Current triangle progress.

int Blaze.MeshBufferExtruded.CurrentVertex

Current vertex progress.

float Blaze.MeshBufferExtruded.ExtrudeAmount =0.5f
TriangulationVertex Blaze.MeshBufferExtruded.FirstInContour
private
UnityEngine.Color Blaze.MeshBufferExtruded.FrontColor

The colour of the front face.

GameObject Blaze.MeshBufferExtruded.Gameobject
package

The gameobject the mesh is attached to.

bool Blaze.MeshBufferExtruded.IsClosing
private

Is the current rendering node a close?

TriangulationVertex Blaze.MeshBufferExtruded.LastInContour
private
MoveFromPoint Blaze.MeshBufferExtruded.LatestMoveFrom
private

The stack of non-closed MoveTo nodes.

Mesh Blaze.MeshBufferExtruded.Mesh

The underlying unity mesh.

bool Blaze.MeshBufferExtruded.Moved =true
private

True if a MoveTo just occured.

float Blaze.MeshBufferExtruded.PreviousX
private

The previous x coordinate.

float Blaze.MeshBufferExtruded.PreviousY
private

The previous y coordinate.

UnityEngine.Color Blaze.MeshBufferExtruded.SideColor

The colour of the sides.

int Blaze.MeshBufferExtruded.StartIndex
private

Vertex index of the "first" tent on a path.

int Blaze.MeshBufferExtruded.TotalVertices

The total number of verts being used. Note that it's not necessarily the same as Vertices.Length.

int [] Blaze.MeshBufferExtruded.Triangles

Triangle set.

Triangulator Blaze.MeshBufferExtruded.Triangulator =null
private
Vector3 [] Blaze.MeshBufferExtruded.Vertices

The computed vertices.

bool Blaze.MeshBufferExtruded.Winding =true
float Blaze.MeshBufferExtruded.XOffset

A number to offset the mesh by on x.

float Blaze.MeshBufferExtruded.XScaleFactor =1f

A number to scale the mesh by.

float Blaze.MeshBufferExtruded.YOffset

A number to offset the mesh by on y.

float Blaze.MeshBufferExtruded.YScaleFactor =1f

A number to scale the mesh by.

Property Documentation

float Blaze.MeshBufferExtruded.SampleDistance
getset