Beispiel #1
0
    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;
    }
Beispiel #2
0
 public Circular(Vector3[] vs, float radius1, float radius2, CircularType type)
 {
     this.Vertices = vs;
     this.radius1  = radius1;
     this.radius2  = radius2;
     this.type     = type;
 }
Beispiel #3
0
    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;
    }