Ejemplo n.º 1
0
        public VertexEdgeItr(BRep2D bRep2D, uint vId)
        {
            BRep2D  = bRep2D;
            IsValid = false;
            UVId    = vId;
            UseVertex uV = BRep2D.BRep.GetUseVertex(UVId);

            System.Diagnostics.Debug.Assert(uV.Id == UVId);
            HEId      = uV.HEId;
            IsInitial = true;
            IsValid   = true;
        }
Ejemplo n.º 2
0
        public LoopEdgeItr(BRep2D bRep2D, uint hEId, uint uLId)
        {
            BRep2D  = bRep2D;
            IsValid = false;
            ULId    = uLId;
            HEId    = hEId;
            System.Diagnostics.Debug.Assert(BRep2D.BRep.IsUseLoopId(ULId));
            System.Diagnostics.Debug.Assert(BRep2D.BRep.IsHalfEdgeId(HEId));
            HalfEdge hE = BRep2D.BRep.GetHalfEdge(HEId);

            System.Diagnostics.Debug.Assert(hE.ULId == ULId);
            IsInitial  = false;
            IsValid    = true;
            IsChildEnd = false;
        }
Ejemplo n.º 3
0
        public LoopEdgeItr(BRep2D bRep2D, uint lId)
        {
            BRep2D  = bRep2D;
            IsValid = false;
            ULId    = 0;
            {
                System.Diagnostics.Debug.Assert(BRep2D.Loop2UseLoop.ContainsKey(lId));
                ULId = BRep2D.Loop2UseLoop[lId];
            }
            System.Diagnostics.Debug.Assert(BRep2D.BRep.IsUseLoopId(ULId));
            UseLoop uL = BRep2D.BRep.GetUseLoop(ULId);

            System.Diagnostics.Debug.Assert(uL.Id == ULId);
            HEId       = uL.HEId;
            IsInitial  = true;
            IsValid    = true;
            IsChildEnd = false;
        }
Ejemplo n.º 4
0
 public void Copy(BRep2D src)
 {
     BRep.Copy(src.BRep);
     Loop2UseLoop  = new Dictionary <uint, uint>(src.Loop2UseLoop);
     Edge2HalfEdge = new Dictionary <uint, uint>(src.Edge2HalfEdge);
 }