Exemple #1
0
        private void method_3(
            Class374 modelBuilder,
            DxfPolyline3DSpline spline,
            Class285 entityBuilder)
        {
            if (entityBuilder == null)
            {
                return;
            }
            Class301 class301 = entityBuilder as Class301;

            if (class301 == null)
            {
                this.method_4(modelBuilder, (DxfPolyline3DBase)spline, entityBuilder);
            }
            else
            {
                DxfVertex3D handledObject = (DxfVertex3D)class301.HandledObject;
                if (class301.IsSplineControlPoint)
                {
                    spline.ControlPoints.Add(handledObject);
                }
                else
                {
                    spline.ApproximationPoints.Add(handledObject);
                }
            }
        }
Exemple #2
0
 public void Visit(DxfPolyline3DSpline polyline)
 {
     this.method_0((DxfEntity)polyline);
     this.method_2(polyline.ApproximationPoints.Count + polyline.ControlPoints.Count);
 }
Exemple #3
0
 public void Visit(DxfPolyline3DSpline polyline)
 {
     this.bool_0 = true;
 }
 /// <summary>
 /// Visits the specified entity.
 /// See the <see cref="IEntityVisitor"/> for more details.
 /// </summary>
 public override void Visit(DxfPolyline3DSpline polyline)
 {
     HandleEntity(polyline);  // don't care for vertices, as they ought to have the same layer
 }
Exemple #5
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfPolyline3DBase   entity = (DxfPolyline3DBase)this.Entity;
            DxfPolyline3DSpline spline = entity as DxfPolyline3DSpline;

            if (spline != null)
            {
                if (this.ulong_6 != 0UL)
                {
                    for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_6); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder))
                    {
                        this.method_3(modelBuilder, spline, entityBuilder);
                        if ((long)entityBuilder.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];
                        this.method_3(modelBuilder, spline, modelBuilder.method_6(handle));
                    }
                }
            }
            else
            {
                DxfPolyline3D polyline = entity as DxfPolyline3D;
                if (polyline != null)
                {
                    if (this.ulong_6 != 0UL)
                    {
                        for (Class285 entityBuilder = modelBuilder.method_6(this.ulong_6); entityBuilder != null; entityBuilder = modelBuilder.method_7(entityBuilder))
                        {
                            this.method_2(modelBuilder, polyline, entityBuilder);
                            if ((long)entityBuilder.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];
                            this.method_2(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;
        }