Exemple #1
0
        private void calcConveyorPath()
        {
            List <Point> topPart = GraphMath.CalcArcPoint(
                150, 500,
                45, 225,
                50, _pathResolution, _scale);

            List <Point> leftPart = GraphMath.CalcArcPoint(
                -43.0672, 304.1683,
                -45, 45,
                225, _pathResolution, _scale);

            leftPart.Reverse();

            List <Point> bottomPart = GraphMath.CalcArcPoint(
                150, 108.3365,
                135, 315,
                50, _pathResolution, _scale);

            List <Point> rightPart = GraphMath.CalcArcPoint(
                -43.0672, 304.1683,
                -45, 45,
                325, _pathResolution, _scale);

            _coords = _coords.Concat(topPart).ToList();
            _coords = _coords.Concat(leftPart).ToList();
            _coords = _coords.Concat(bottomPart).ToList();
            _coords = _coords.Concat(rightPart).ToList();
            _coords.Add(_coords[0]);
        }
Exemple #2
0
        private void calcConveyorPath()
        {
            List <Point> rotor = GraphMath.CalcArcPoint(
                50, 315,
                0, 360,
                100, _pathResolution, _scale);

            _coords = _coords.Concat(rotor).ToList();
            _coords.Add(_coords[0]);
        }
Exemple #3
0
        private void calcCellDiameter()
        {
            double path_length = 0;

            for (int i = 1; i < _coords.Count; i++)
            {
                path_length += GraphMath.PointLenth(_coords[i - 1], _coords[i]);
            }

            TubeDiameter = path_length / Cells.Count;
        }