Esempio n. 1
0
        public void FromTriangleMeshNotSupported()
        {
            var mesh = new BoxShape(1, 2, 3).GetMesh(0.01f, 1);

            // Add a stray triangle. - Only fully connected meshes are supported!
            mesh.Add(new Triangle(new Vector3F(10, 10, 10), new Vector3F(20, 20, 20), new Vector3F(30, 30, 30)), false);

            var dcel = DcelMesh.FromTriangleMesh((ITriangleMesh)mesh);
        }