Class CircularCrossSection
Generate vertices that approximate a circle.
Inheritance
System.Object
CircularCrossSection
Namespace: VRSketchingGeometry.Meshing
Assembly: VRSketchingGeometry.dll
Syntax
public class CircularCrossSection
Remarks
Original author: tterpi
Methods
GenerateVertices(Int32, Single)
Get vertices that approximate a circle. The cross section will have resolution + 1 vertices.
Declaration
public static List<Vector3> GenerateVertices(int resolution, float scale = 0.5F)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | resolution | Number of vertices of the circle. |
| System.Single | scale | Radius of the cross section. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<UnityEngine.Vector3> |