コード例 #1
0
        public override void DrawInternal(
            DrawContext.Wireframe context,
            IWireframeGraphicsFactory graphicsFactory)
        {
            IClippingTransformer transformer = context.GetTransformer();
            Vector3D             vector3D    = 10000000.0 * this.vector3D_0;

            WW.Math.Point3D start = this.point3D_0 - vector3D;
            WW.Math.Point3D end   = this.point3D_0 + vector3D;
            foreach (Segment4D segment in (IEnumerable <Segment4D>)transformer.Transform(new Segment3D(start, end)))
            {
                Vector4D?startPoint = transformer.Transform(this.point3D_0);
                graphicsFactory.CreateXLine((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), startPoint, segment);
            }
        }
コード例 #2
0
ファイル: WireframeGraphicsCache.cs プロジェクト: 15831944/WW
 public void Draw(IWireframeGraphicsFactory graphicsFactory)
 {
     graphicsFactory.CreateXLine(this.entity, this.drawContext, this.color, this.nullable_0, this.segment4D_0);
 }