Members
WMeshVtk
- Description:
 讀寫Vtk的ASCII檔檔
- Source:
 
讀寫Vtk的ASCII檔檔
Example
        
    
    
        Methods
(async) readVtk(fp) → {Promise}
- Description:
 讀取Vtk的ASCII檔
- Source:
 
Example
    Parameters:
| Name | Type | Description | 
|---|---|---|
fp | 
            
            String | 輸入檔案位置字串  | 
        
Returns:
回傳Promise,resolve回傳ltdt(各數據列為物件陣列),reject回傳錯誤訊息
- Type
 - Promise
 
(async) writeVtkCore(mnes, fpOut, optopt) → {Promise}
- Description:
 輸出數據至Vtk檔案
- Source:
 
Example
let name = 'abc'
let nodes = [...]
let eles = [...]
let fpOut = '{path of file}'
console.log('writing...')
writeVtk({ name, nodes, eles }, fpOut)
    .then((r) => {
        console.log('finish.')
    })
    .catch((err) => {
        console.log(err)
    })
    Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
mnes | 
            
            Object | Array | 輸入數據物件或陣列,輸入物件須包含name、nodes、eles,輸入陣列時則各元素為物件(name、nodes、eles)  | 
        ||
fpOut | 
            
            String | 輸入儲存檔案位置字串  | 
        ||
opt | 
            
            Object | 
                
                    <optional> | 
            
            
                
                
                    {}
                
                 | 
            
            輸入設定物件,預設{}  | 
        
Returns:
回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息
- Type
 - Promise