FrameIT
TorusGenerator Class Reference
Inheritance diagram for TorusGenerator:
ShapeGenerator

Public Attributes

float torusRadius = 1f
 
float ringRadius = 0.1f
 
int ringSegmentCount = 50
 
int segmentSideCount = 30
 
- Public Attributes inherited from ShapeGenerator
List< MeshFilter > Meshs
 
List< float > NormalOffset
 
bool AlternateNormals = false
 

Protected Member Functions

 override (Vector3[] vertices, int[] triangles) GenerateTopology()
 
- Protected Member Functions inherited from ShapeGenerator
void GenerateShapeForAll ()
 
abstract Vector3[] int[] triangles GenerateTopology ()
 

Static Private Member Functions

static Vector3[] int[] triangles CreateTorus (float torusRadius, float ringRadius, int ringSegmentCount, int segmentSideCount)
 
static Vector3 GetPointOnTorus (float torusRadius, float ringRadius, float u, float v)
 

Static Private Attributes

static Vector3[] vertices
 

Additional Inherited Members

- Static Public Member Functions inherited from ShapeGenerator
static Vector3[] GetUnweightedNormals (Mesh mesh)
 
- Static Protected Member Functions inherited from ShapeGenerator
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 inherited from ShapeGenerator
abstract Vector3[] vertices
 
- Static Protected Attributes inherited from ShapeGenerator
static Vector3[] vertices
 Creates triangles for a set of vertecies of a flat, convex shape More...
 

Member Function Documentation

◆ CreateTorus()

static Vector3[] int[] triangles TorusGenerator.CreateTorus ( float  torusRadius,
float  ringRadius,
int  ringSegmentCount,
int  segmentSideCount 
)
staticprivate

◆ GetPointOnTorus()

static Vector3 TorusGenerator.GetPointOnTorus ( float  torusRadius,
float  ringRadius,
float  u,
float  v 
)
staticprivate

◆ override()

TorusGenerator.override ( Vector3[]  vertices,
int[]  triangles 
)
protected

Member Data Documentation

◆ ringRadius

float TorusGenerator.ringRadius = 0.1f

◆ ringSegmentCount

int TorusGenerator.ringSegmentCount = 50

◆ segmentSideCount

int TorusGenerator.segmentSideCount = 30

◆ torusRadius

float TorusGenerator.torusRadius = 1f

◆ vertices

Vector3 [] TorusGenerator.vertices
staticprivate

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