Beispiel #1
0
    /**
     *
     * Fonctions s'occupant de l'extrusion
     *
     **/

    // retourne la liste de points d'une face
    private List <Vector3> ComputePointsFace(HalfEdge firstEdge, List <HalfEdge> halfEdges)
    {
        HalfEdge       currentIndex = firstEdge;
        List <Vector3> points       = new List <Vector3>();

        points.Add(firstEdge.Position);
        string face = "Face : ";

        do
        {
            currentIndex = currentIndex.Next;
            points.Add(currentIndex.Position);
            halfEdges.Remove(currentIndex);
            face += currentIndex.ToString() + " ";
        } while (currentIndex != firstEdge);
        Debug.Log(face);
        return(points);
    }
Beispiel #2
0
        private string EdgeName(HalfEdge e)
        {
            string edgeName;
            var    ypos = e.InitVertex.Y;

            switch (ypos)
            {
            case T.MaxValue:
                edgeName = "Inf";
                break;

            case T.MinValue:
                edgeName = "-Inf";
                break;

            default:
                edgeName = e.ToString();
                break;
            }

            return(edgeName);
        }