Beispiel #1
0
        static void loopTheNodes(ManagedSceneNode node)
        {
            ManagedMesh lMesh = node.GetMesh();

            Console.WriteLine(node.GetName() + ":");
            if (lMesh.IsValid)
            {
                Console.WriteLine("mesh:" + lMesh.GetName() + " control points count: " + lMesh.GetControlPointCount());
                Console.WriteLine("polygon count: " + lMesh.GetPolygonCount());
                for (int i = 0; i < lMesh.GetControlPointCount(); i++)
                {
                    double[] vector4 = lMesh.GetControlPointAt(i);
                }
            }
            int count = node.GetChildCount();

            for (int i = 0; i < count; i++)
            {
                ManagedSceneNode current = node.GetChild(i);
                loopTheNodes(current);
            }
        }
Beispiel #2
0
 public bool ComputeEdgeSmoothingFromPolygonSmoothing(ManagedMesh pMesh, int pIndex = 0)
 {
     return(GeometryConverter_ComputeEdgeSmoothingFromPolygonSmoothing(m_nativeObject, pMesh.NativeObject, pIndex));
 }
Beispiel #3
0
 public bool EmulateNormalsByPolygonVertex(ManagedMesh pMesh)
 {
     return(GeometryConverter_EmulateNormalsByPolygonVertex(m_nativeObject, pMesh.NativeObject));
 }
Beispiel #4
0
 public bool ComputeEdgeSmoothingFromNormals(ManagedMesh pMesh)
 {
     return(GeometryConverter_ComputeEdgeSmoothingFromNormals(m_nativeObject, pMesh.NativeObject));
 }
Beispiel #5
0
        public ManagedMesh TriangulateMesh(ManagedMesh pMesh, bool pReplace, bool pLegacy)
        {
            IntPtr nativeMesh = GeometryConverter_TriangulateMesh(m_nativeObject, pMesh.NativeObject, pReplace, pLegacy);

            return(new ManagedMesh(nativeMesh));
        }