Esempio n. 1
0
        public override void DrawInternal(
            DrawContext.Wireframe context,
            IWireframeGraphicsFactory graphicsFactory)
        {
            Polyline3DT          imageBoundaryPolyline;
            IClippingTransformer transformer;
            IList <Polyline4D>   polylines1 = this.method_16(context, out imageBoundaryPolyline, out transformer);

            if (polylines1.Count <= 0)
            {
                return;
            }
            graphicsFactory.CreatePath((DxfEntity)this, context, context.Config.BackColor, false, polylines1, true, false);
            IList <FlatShape4D> flatShape4DList = (IList <FlatShape4D>)null;

            if (!context.WipeoutVariables.DisplayFrame)
            {
                return;
            }
            IList <WW.Math.Geometry.Polyline3D> polyline3DList;

            if (context.Config.ApplyLineType)
            {
                IList <FlatShape4D> resultShapes = (IList <FlatShape4D>) new List <FlatShape4D>();
                polyline3DList = (IList <WW.Math.Geometry.Polyline3D>) new List <WW.Math.Geometry.Polyline3D>();
                Vector3D upward = Vector3D.CrossProduct(this.XAxis, this.YAxis);
                if (upward == Vector3D.Zero)
                {
                    upward = Vector3D.ZAxis;
                }
                else
                {
                    upward.Normalize();
                }
                DxfUtil.smethod_11(context.Config, polyline3DList, resultShapes, imageBoundaryPolyline, this.GetLineType((DrawContext)context), upward, context.TotalLineTypeScale * this.LineTypeScale, context.GetTransformer().LineTypeScaler);
                if (resultShapes.Count == 0)
                {
                    flatShape4DList = (IList <FlatShape4D>)null;
                }
            }
            else
            {
                polyline3DList = (IList <WW.Math.Geometry.Polyline3D>) new WW.Math.Geometry.Polyline3D[1]
                {
                    imageBoundaryPolyline.ToPolyline3D()
                };
                flatShape4DList = (IList <FlatShape4D>)null;
            }
            IList <Polyline4D> polylines2 = DxfUtil.smethod_36(polyline3DList, false, transformer);

            graphicsFactory.CreatePath((DxfEntity)this, context, this.GetColor((DrawContext)context), false, polylines2, false, true);
        }