Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="buffer"></param>
        /// <param name="setVertexAttributes"></param>
        /// <param name="setHedgeAttributes"></param>
        /// <returns></returns>
        public TG CreateFromJson(string path, Action <TV, object[]> setVertexAttributes = null, Action <TE, object[]> setHedgeAttributes = null)
        {
            var result = Create();

            MeshIO.ReadFromJson(path, result, setVertexAttributes, setHedgeAttributes);
            return(result);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public G CreateFromJson(string path)
        {
            var result = Create();

            MeshIO.ReadFromJson(path, result);
            return(result);
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <param name="setPosition"></param>
        /// <returns></returns>
        public TM CreateFromObj(string path, Action <TV, Vec3d> setPosition)
        {
            var result = Create();

            MeshIO.ReadFromObj(path, result, setPosition);
            return(result);
        }