Ejemplo n.º 1
0
        public BvhShapeDefinition(AssimpMesh mesh)
        {
            this.vertices = new Vector3[mesh.VerticesCount];
            this.indices = mesh.Indices.ToArray();

            Vector3* v = (Vector3*)mesh.Positions();

            for (int i = 0; i < mesh.VerticesCount; i++)
            {
                this.vertices[i] = v[i];
            }
        }
Ejemplo n.º 2
0
        public BvhShapeDefinition(AssimpMesh mesh)
        {
            this.vertices = new Vector3[mesh.VerticesCount];
            this.indices  = mesh.Indices.ToArray();

            Vector3 *v = (Vector3 *)mesh.Positions();

            for (int i = 0; i < mesh.VerticesCount; i++)
            {
                this.vertices[i] = v[i];
            }
        }