paraview

Taurus.MVC 2.3.2 :WebAPI 文档集成测试功能及附加<%# JS执行功能语法 %>

丶灬走出姿态 提交于 2020-05-08 15:29:32
前言: 前些天有网友提到了那个界面丑陋的SwaggerUI,让我想起了多年前实现的WebAPI文档未完成的功能点,于是,动手了,便有了本文的内容。 开源地址: https://github.com/cyq1162/Taurus.MVC 1、WebAPI 文档集成测试功能(增强说明) 开启WebAPI文档:web.config 或 appsettings.json 设置:"IsStartDoc": true 即可通过/doc访问自动生成的WebAPI文档 1、过滤掉无描述的接口。 文档自动生成的来源来自项目中的Xml文档注释 为了能更好的控制显示的结果,不带注释的类或方法(只收录public),不会被收录显示。 2、参数的显示与执行测试说明 自动和成的参数,来自以下方法的注释: /// <summary> /// 获取Token /// </summary> /// /// <param name="un" required="true" value="13488889999">用户名</param> /// <param name="pwd" type="header">密码</param> /// <param name="upload" type="file">图片上传</param> /// <returns>{success:true:msg:"tokenString...

Converting a 3D array in ASCII to a file Paraview can read

孤人 提交于 2020-02-22 07:01:25
问题 I am trying to get a data file of mine converted to something that Paraview can read. What I have found so far is that it needs to be converted to a VTK but I am not sure how to begin this. I have seen a bunch of answers but nothing relating to what I need. Here is what I have... I have a .dat file with 4 columns of numbers. x- coordinate, y- coordinate, z- coordinate, density at that point The code I am using is in fortran. Can someone please point me in the right direction. Can fortran

Converting a 3D array in ASCII to a file Paraview can read

允我心安 提交于 2020-02-22 07:01:12
问题 I am trying to get a data file of mine converted to something that Paraview can read. What I have found so far is that it needs to be converted to a VTK but I am not sure how to begin this. I have seen a bunch of answers but nothing relating to what I need. Here is what I have... I have a .dat file with 4 columns of numbers. x- coordinate, y- coordinate, z- coordinate, density at that point The code I am using is in fortran. Can someone please point me in the right direction. Can fortran

Paraview's Python shell not reading file path corectly

余生颓废 提交于 2020-01-25 06:57:10
问题 my main file uses several other files to complete a 3D render in Paraview. I have been using Pythons os library to get the file path that I need. For some reason Paraview breaks when I try to retrieve my path. I am using Paraview's build in shell to run my script. My code goes as follows: import os dir = os.path.dirname(os.path.realpath(__file__)) print(dir) This line of code works inconsistently and I want to understand why this isn't working If my file is in a directory named C:\Test\Test1

Paraview : Glew could not be initialized

回眸只為那壹抹淺笑 提交于 2020-01-15 23:01:09
问题 I am trying to run a simple code for paraview from jupyter notebook as following: from paraview.simple import * cone = Cone() Show(cone) Render() But this gives me an error ERROR:In/home/conda/feedstock_root/build_artifacts/paraview_1532760595263/work/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 781 vtkOSOpenGLRenderWindow (0x556661755060): GLEW could not be initialized. The error remains the same when I run it from a python shell. I also installed paraview using conda. I am using

binary vtk for Rectilinear_grid from fortran code can not worked by paraview [duplicate]

穿精又带淫゛_ 提交于 2020-01-11 11:57:45
问题 This question already has an answer here : Binary VTK for RECTILINEAR_GRID from fortran code (1 answer) Closed 3 years ago . I used the code posted from stackoverflow and modified it as: program VTKBinary implicit none real*4 :: x(2) = (0., 1.) real*4 :: y(2) = (0., 1.) real*4 :: z(2) = (0., 1.) character :: buffer*80, lf*1, str1*8, str2*8, str3*8 integer :: ivtk = 9, int,i lf = char(10) ! line feed character !open(unit=ivtk,file='test_bin.vtk',form='binary',convert='BIG_ENDIAN') open(unit

Trace files/modules loaded when launching python

好久不见. 提交于 2020-01-07 05:23:14
问题 I am using Paraview 4.0.1 under Ubuntu 14.04 LTS. But I guess the answer to this question does not necessarily requires knowledge specific to Paraview python. When I load a python prompt at the command line everything "works well": $ pvpython Python 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from paraview.simple import * paraview version 4.0.1 >>> But when I load the python shell within the GUI, from

Error writing binary VTK files

元气小坏坏 提交于 2020-01-02 14:53:21
问题 I am trying to write a basic binary VTK file to display some data using ParaView but I have some errors and I don't understand why. Here is my test code in C++: #include <iostream> #include <fstream> double myarray[72] = { 0,0,0,1,0,0,2,0,0,3,0,0,4,0,0, 5,0,0,0,1,0,1,1,0,2,1,0,3,1,0, 4,1,0,5,1,0,0,2,0,1,2,0,2,2,0, 3,2,0,4,2,0,5,2,0,0,3,0,1,3,0, 2,3,0,3,3,0,4,3,0,5,3,0}; int main() { std::ofstream vtkstream("test01.vtk", std::ios::out | std::ios::trunc); bool ascii = false; if (vtkstream) {

How to add a custom array to a polydata in paraview?

喜你入骨 提交于 2019-12-30 10:05:44
问题 I know that I can use the Calculator filter for operations on arrays, but I want to perform some more complicated computations. I managed to do it in Paraview python shell, but the missing step now is to go back to the viewer again (or save the new polydata to file). Here is what I have so far: polydata = servermanager.Fetch(FindSource("mydataalreadyopeninparaview")) region_size = paraview.vtk.vtkIntArray() region_size.SetNumberOfComponents(0) region_size.SetName("regionsize") for i in range

How does paraview read a vtk file?

北慕城南 提交于 2019-12-25 08:47:26
问题 I have a general question as to how paraview reads a ASCII UNSTRUCTURED_GRID. Does it sort through the cells and then points? or points then cells? 回答1: Paraview is built on the VTK library and both of them are open source, so if you are a programmer, you should be able to get all your answers by reading the code. What I assume (but I can be wrong, check sources of paraview to be sure) paraview uses for reading ASCII unstructured grids is vtkUnstructuredGridReader, source code of which you