Example #1
0
 public Frame(PointT startPoint, PointT endPoint, Region crossSection) : base()
 {
     this._startPoint   = startPoint;
     this._endPoint     = endPoint;
     this.MidPoint      = (startPoint + endPoint) / 2.0;
     this._crossSection = crossSection;
 }
Example #2
0
        private void InitializePoints()
        {
            double halfWidth  = _width * 0.5;
            double halfHeight = _height * 0.5;

            _points[0] = new PointT(-halfWidth, 0, -halfHeight);
            _points[1] = new PointT(-halfWidth, 0, halfHeight);
            _points[2] = new PointT(halfWidth, 0, halfHeight);
            _points[3] = new PointT(halfWidth, 0, -halfHeight);
            foreach (var point in _points)
            {
                point.OnTransformed += NotifyPointIsChanged;
            }
        }
Example #3
0
        public Profile2(Region crossSection, PointT startPoint, PointT endPoint)
        {
            _crossSection = crossSection;
            StartPoint    = startPoint;
            EndPoint      = endPoint;

            _position = new ProfilePosition2();
            //_position.Parent = this;
            ReferanceLine = new Line(startPoint, endPoint);

            InitializeVectors();
            InitializeView();

            _position.InitializePlanes();

            StartPoint.OnTransformed += NotifyPointChanged;
            EndPoint.OnTransformed   += NotifyPointChanged;
        }
Example #4
0
 public PointT(PointT another) : base(another.X, another.Y, another.Z)
 {
 }