public Circular(Vector3[] vs, float radius1, float radius2, CircularType type) { this.Vertices = vs; this.radius1 = radius1; this.radius2 = radius2; this.type = type; int count = 0; if (Vertices.Length == 3) { count = 1; } else if (Vertices.Length == 4) { count = 2; } if (Vertices[0].z != 0) { count++; } if (Vertices[1].z != 0) { count++; } this.circleCount = count; }
public Circular(Vector3[] vs, float radius1, float radius2, CircularType type) { this.Vertices = vs; this.radius1 = radius1; this.radius2 = radius2; this.type = type; }
public GeoCircular(VertexUnit[] vertexs, float radius1, float radius2, CircularType type, bool isBased = false) : base(0, 0, isBased) { name = "Circular"; this.vertexs = vertexs; this.radius1 = radius1; this.radius2 = radius2; this.type = type; }