/// <summary> /// Constructor to create the Projection of the Parent 2D Lines /// </summary> /// <param name="_startXY"></param> /// <param name="_endXY"></param> /// <param name="_startYZ"></param> /// <param name="_endYZ"></param> /// <param name="_startXZ"></param> /// <param name="_endXZ"></param> public ChildLine_ViewLines(Point2D _startXY, Point2D _endXY, Point2D _startYZ, Point2D _endYZ, Point2D _startXZ, Point2D _endXZ) { FrontView = new ChildLine_VariableLine(_startXY, _endXY, Plane.XY); SideView = new ChildLine_VariableLine(_startYZ, _endYZ, Plane.ZY); TopView = new ChildLine_VariableLine(_startXZ, _endXZ, Plane.XZ); }
/// <summary> /// Method to initialize the components of a <see cref="Custom3DGeometry"/> by adding a Line to List <see cref="ChildLine_VariableLine.DeltaLine"/> of the <see cref="Line"/> and the <see cref="ViewLines"/> and the 3 prependicular Lines /// </summary> /// <param name="_startPoint"></param> /// <param name="_endPoint"></param> public void InitializeComponent(Point3D _startPoint, Point3D _endPoint, int _i) { Line = new ChildLine_VariableLine(_startPoint, _endPoint); PerpAlongX = new ChildLine_LinePair(Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint, new Point3D(Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.X + 100, Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.Y, Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.Z)); PerpAlongY = new ChildLine_LinePair(Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint, new Point3D(Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.X, Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.Y + 100, Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.Z)); PerpAlongZ = new ChildLine_LinePair(Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint, new Point3D(Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.X, Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.Y, Line.DeltaLine[Line.DeltaLine.Count - 1].MidPoint.Z + 100)); ViewLines = new ChildLine_ViewLines(new Point2D(_startPoint.X, _startPoint.Y), new Point2D(_endPoint.X, _endPoint.Y), new Point2D(_startPoint.Z, _startPoint.Y), new Point2D(_endPoint.Z, _endPoint.Y), new Point2D(_startPoint.X, _startPoint.Z), new Point2D(_endPoint.X, _endPoint.Z)); }