示例#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>
        /// <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);
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public G CreateFromJson(string path)
        {
            var result = Create();

            MeshIO.ReadFromJson(path, result);
            return(result);
        }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="path"></param>
 public void WriteToOBJ(string path)
 {
     MeshIO.WriteToObj(this, path, V.GetPosition, V.GetNormal, V.GetTexture);
 }