public static void FaceGetOuterLoop(
     FaceRef faceRef,
     LoopRef loopRef)
 {
     ThrowOut(
         FaceGetOuterLoop(
             faceRef.intPtr,
             out loopRef.intPtr),
         "Could not get outer loop.");
 }
 public static void LoopGetNumVertices(
     LoopRef loopRef,
     out long numVertices)
 {
     ThrowOut(
         SULoopGetNumVertices(
             loopRef.intPtr,
             out numVertices),
         "Could not get number of vertices.");
 }
        public static void LoopGetEdges(
            LoopRef loopRef,
            long len,
            EdgeRef[] edgeRefs,
            out long count)
        {
            IntPtr[] intPtrs = new IntPtr[edgeRefs.Length];

            ThrowOut(
                SULoopGetEdges(
                    loopRef.intPtr,
                    len,
                    intPtrs,
                    out count),
                "Could not get loop edges.");

            for (int i = 0; i < edgeRefs.Length; ++i)
            {
                edgeRefs[i]        = new EdgeRef();
                edgeRefs[i].intPtr = intPtrs[i];
            }
        }
        public static void LoopGetVertices(
            LoopRef loopRef,
            long len,
            VertexRef[] vertexRefs,
            out long count)
        {
            IntPtr[] intPtrs = new IntPtr[vertexRefs.Length];

            ThrowOut(
                SULoopGetVertices(
                    loopRef.intPtr,
                    len,
                    intPtrs,
                    out count),
                "Could not get loop vertices.");

            for (int i = 0; i < vertexRefs.Length; ++i)
            {
                vertexRefs[i]        = new VertexRef();
                vertexRefs[i].intPtr = intPtrs[i];
            }
        }
Пример #5
0
        public static void FaceGetInnerLoops(
            FaceRef faceRef,
            long len,
            LoopRef[] loopRefs,
            out long count)
        {
            IntPtr[] intPtrs = new IntPtr[loopRefs.Length];

            ThrowOut(
                SUFaceGetInnerLoops(
                    faceRef.intPtr,
                    len,
                    intPtrs,
                    out count),
                "Could not get inner loops.");

            for (int i = 0; i < loopRefs.Length; ++i)
            {
                loopRefs[i]        = new LoopRef();
                loopRefs[i].intPtr = intPtrs[i];
            }
        }