Пример #1
0
    public Curve(
        bool isSelected,
        bool isBeingDrawn,
        bool isBeingMoving,
        bool isClosed,
        List <Vector3> positions,
        Vector3 position,
        Quaternion rotation)
    {
        this.isSelected   = isSelected;
        this.isBeingDrawn = isBeingDrawn;
        this.isBeingMoved = isBeingMoving;
        this.isClosed     = isClosed;
        this.positions    = positions;

        if (positions.Count >= 2)
        {
            this.mesh = MakeMesh.Curve(this.positions, this.meridian, this.radius, this.isClosed);
        }

        this.position = position;
        this.rotation = rotation;
    }
Пример #2
0
 public void MeshUpdate()
 {
     this.mesh = MakeMesh.Curve(this.positions, this.meridian, this.radius, this.isClosed);
 }