<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          meshio網(wǎng)格數(shù)據(jù)格式轉(zhuǎn)換工具

          聯(lián)合創(chuàng)作 · 2023-09-28 09:39

          meshio 是一個網(wǎng)格格式的輸入/輸出轉(zhuǎn)換工具,既可以進(jìn)行格式轉(zhuǎn)換,也可以在 python 中調(diào)用相應(yīng)函數(shù)。

          支持以下格式的互轉(zhuǎn)化:

          用例

          使用其中之一安裝:

          pip install meshio[all]
          
          conda install -c conda-forge meshio

          [all]拉入所有可選依賴項。默認(rèn)情況下,meshio 僅使用 numpy。)

          然后可以使用命令行工具

          meshio convert    input.msh output.vtk   # convert between two formats
          meshio info       input.xdmf             # show some info about the mesh
          meshio compress   input.vtu              # compress the mesh file
          meshio decompress input.vtu              # decompress the mesh file
          meshio binary     input.msh              # convert to binary format
          meshio ascii      input.msh              # convert to ASCII format

          Python 中的用法:

          import meshio
          
          mesh = meshio.read(
              filename,  # string, os.PathLike, or a buffer/open file
              # file_format="stl",  # optional if filename is a path; inferred from extension
              # see meshio-convert -h for all possible formats
          )
          # mesh.points, mesh.cells, mesh.cells_dict, ...
          

           

           

           

          瀏覽 304
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产精品久久久久久久免牛肉蒲 | 久久久久久久久久久久性性 | 2022黄片 | 少女操逼 | 欧美怡春院 |