Beispiel #1
0
        /// <summary>
        /// EdgeIndices will contain indexes into the result of GetAllEdges
        /// </summary>
        /// <param name="edgeIndices"></param>
        /// <param name="pt"></param>
        public void GetEdgesAroundPoint(out int[] edgeIndices, BoxPointIndex pt)
        {
            edgeIndices = new int[3];
            int ind = 0;

            for (int i = 0; i < edges.Length; ++i)
            {
                if ((edges[i].Ind0 == pt) || (edges[i].Ind1 == pt))
                    edgeIndices[ind++] = i;
                if (ind == 3) return;
            }
        }
Beispiel #2
0
 public Edge(BoxPointIndex ind0, BoxPointIndex ind1)
 {
     this.Ind0 = ind0;
     this.Ind1 = ind1;
 }
Beispiel #3
0
        /// <summary>
        /// EdgeIndices will contain indexes into the result of GetAllEdges
        /// </summary>
        /// <param name="edgeIndices"></param>
        /// <param name="pt"></param>
        public void GetEdgesAroundPoint(out int[] edgeIndices, BoxPointIndex pt)
        {
            edgeIndices = new int[3];
            int ind = 0;

            for (int i = 0; i < edges.Length; ++i)
            {
                if ((edges[i].Ind0 == pt) || (edges[i].Ind1 == pt))
                    edgeIndices[ind++] = i;
                if (ind == 3) return;
            }
        }
Beispiel #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="ind0"></param>
 /// <param name="ind1"></param>
 public Edge(BoxPointIndex ind0, BoxPointIndex ind1)
 {
     this.Ind0 = ind0;
     this.Ind1 = ind1;
 }
Beispiel #5
0
 public Edge(BoxPointIndex ind0, BoxPointIndex ind1)
 {
     Ind0 = ind0;
     Ind1 = ind1;
 }