Exemplo n.º 1
0
        private static void smethod_1(DxfPolyline2DSpline spline, Class285 vertexBuilder)
        {
            DxfVertex2D handledObject = (DxfVertex2D)vertexBuilder.HandledObject;

            if (handledObject.IsSplineControlPoint)
            {
                spline.ControlPoints.Add(handledObject);
            }
            else
            {
                spline.ApproximationPoints.Add(handledObject);
            }
        }
Exemplo n.º 2
0
 public void Visit(DxfPolyline2DSpline polyline)
 {
     this.method_0((DxfEntity)polyline);
     this.method_2(polyline.ApproximationPoints.Count + polyline.ControlPoints.Count);
 }
Exemplo n.º 3
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfPolyline2DBase   entity = (DxfPolyline2DBase)this.Entity;
            DxfPolyline2DSpline spline = entity as DxfPolyline2DSpline;

            if (spline != null)
            {
                if (this.ulong_6 != 0UL)
                {
                    for (Class285 class285 = modelBuilder.method_6(this.ulong_6); class285 != null; class285 = modelBuilder.method_7(class285))
                    {
                        Class297.smethod_1(spline, class285);
                        if ((long)class285.HandledObject.Handle == (long)this.ulong_7)
                        {
                            break;
                        }
                    }
                }
                else if (this.list_1 != null)
                {
                    for (int index = 0; index < this.list_1.Count; ++index)
                    {
                        ulong handle = this.list_1[index];
                        Class297.smethod_1(spline, modelBuilder.method_6(handle));
                    }
                }
            }
            else
            {
                DxfPolyline2D polyline = entity as DxfPolyline2D;
                if (polyline != null)
                {
                    if (this.ulong_6 != 0UL)
                    {
                        for (Class285 class285 = modelBuilder.method_6(this.ulong_6); class285 != null; class285 = modelBuilder.method_7(class285))
                        {
                            Class297.smethod_0(modelBuilder, polyline, class285);
                            if ((long)class285.HandledObject.Handle == (long)this.ulong_7)
                            {
                                break;
                            }
                        }
                    }
                    else if (this.list_1 != null)
                    {
                        for (int index = 0; index < this.list_1.Count; ++index)
                        {
                            ulong handle = this.list_1[index];
                            Class297.smethod_0(modelBuilder, polyline, modelBuilder.method_6(handle));
                        }
                    }
                }
            }
            if (this.ulong_8 == 0UL)
            {
                return;
            }
            DxfSequenceEnd dxfSequenceEnd = modelBuilder.method_4 <DxfSequenceEnd>(this.ulong_8);

            if (dxfSequenceEnd == null)
            {
                return;
            }
            entity.SeqEnd = dxfSequenceEnd;
        }
Exemplo n.º 4
0
 public void Visit(DxfPolyline2DSpline polyline)
 {
     this.bool_0 = true;
 }
 /// <summary>
 /// Visits the specified entity.
 /// See the <see cref="IEntityVisitor"/> for more details.
 /// </summary>
 public override void Visit(DxfPolyline2DSpline polyline)
 {
     HandleEntity(polyline);  // don't care for vertices, as they ought to have the same layer
 }