Browse Source

comments

master
gjj 9 months ago
parent
commit
867b827701
  1. BIN
      .cache/clangd/index/bernstein.hpp.20204FF2457695A5.idx
  2. BIN
      .cache/clangd/index/binomial.hpp.5FC5A6519DEB2373.idx
  3. BIN
      .cache/clangd/index/booluarray.hpp.4BF39CC64ED0E177.idx
  4. BIN
      .cache/clangd/index/examples_quad_multipoly.cpp.0D2810FB9DB7141B.idx
  5. BIN
      .cache/clangd/index/gaussquad.hpp.69B5BAA99A9F7FD2.idx
  6. BIN
      .cache/clangd/index/multiloop.hpp.F93070EAF354D6D3.idx
  7. BIN
      .cache/clangd/index/polyset.hpp.8BBBCD9F83C6C2A8.idx
  8. BIN
      .cache/clangd/index/quadrature_multipoly.hpp.8A7AC8899C015CF5.idx
  9. BIN
      .cache/clangd/index/real.hpp.B89F9F0B403E7571.idx
  10. BIN
      .cache/clangd/index/sparkstack.hpp.8ADBE7C80DD20475.idx
  11. BIN
      .cache/clangd/index/tanhsinh.hpp.13B34E51E1A7B42D.idx
  12. BIN
      .cache/clangd/index/utility.hpp.F0165405AAF02E18.idx
  13. BIN
      .cache/clangd/index/uvector.hpp.D4CC337C170209FD.idx
  14. BIN
      .cache/clangd/index/xarray.hpp.31B9410CC89C907A.idx
  15. 4
      algoim/bernstein.hpp
  16. 6
      algoim/quadrature_multipoly.hpp
  17. 3
      compile_output.txt
  18. 17
      exampleA-phase0.vtp
  19. 17
      exampleA-phase1.vtp
  20. 17
      exampleA-surf.vtp
  21. 17
      exampleB-phase0.vtp
  22. 17
      exampleB-phase1.vtp
  23. 17
      exampleB-surf.vtp
  24. 17
      exampleC-surf.vtp
  25. 17
      exampleC-vol.vtp
  26. BIN
      main.exe
  27. BIN
      test
  28. 9
      test.cpp

BIN
.cache/clangd/index/bernstein.hpp.20204FF2457695A5.idx

Binary file not shown.

BIN
.cache/clangd/index/binomial.hpp.5FC5A6519DEB2373.idx

Binary file not shown.

BIN
.cache/clangd/index/booluarray.hpp.4BF39CC64ED0E177.idx

Binary file not shown.

BIN
.cache/clangd/index/examples_quad_multipoly.cpp.0D2810FB9DB7141B.idx

Binary file not shown.

BIN
.cache/clangd/index/gaussquad.hpp.69B5BAA99A9F7FD2.idx

Binary file not shown.

BIN
.cache/clangd/index/multiloop.hpp.F93070EAF354D6D3.idx

Binary file not shown.

BIN
.cache/clangd/index/polyset.hpp.8BBBCD9F83C6C2A8.idx

Binary file not shown.

BIN
.cache/clangd/index/quadrature_multipoly.hpp.8A7AC8899C015CF5.idx

Binary file not shown.

BIN
.cache/clangd/index/real.hpp.B89F9F0B403E7571.idx

Binary file not shown.

BIN
.cache/clangd/index/sparkstack.hpp.8ADBE7C80DD20475.idx

Binary file not shown.

BIN
.cache/clangd/index/tanhsinh.hpp.13B34E51E1A7B42D.idx

Binary file not shown.

BIN
.cache/clangd/index/utility.hpp.F0165405AAF02E18.idx

Binary file not shown.

BIN
.cache/clangd/index/uvector.hpp.D4CC337C170209FD.idx

Binary file not shown.

BIN
.cache/clangd/index/xarray.hpp.31B9410CC89C907A.idx

Binary file not shown.

4
algoim/bernstein.hpp

@ -581,7 +581,7 @@ namespace algoim::bernstein
// Methods to compute, and cache, the SVD for Bernstein interpolation based on modified Chebysev nodes
struct BernsteinVandermondeSVD
{
struct SVD
struct SVD // 将矩阵A分解为U * diag(sigma) * Vt,其中U和Vt是正交矩阵,sigma是对角矩阵
{
real *U;
real *Vt;
@ -619,6 +619,8 @@ namespace algoim::bernstein
};
// Interpolate tensor-product data f, assumed to be nodal values at the same nodes returned by modifiedChebyshevNode()
// ?
// out: control points ?
template<int N, bool B = false>
void bernsteinInterpolate(const xarray<real,N>& f, real tol, xarray<real,N>& out)
{

6
algoim/quadrature_multipoly.hpp

@ -497,7 +497,7 @@ namespace algoim
PolySet<N,ALGOIM_M> phi; // Given N-dimensional polynomials
int k; // Elimination axis/height direction; k = N if there are no interfaces
ImplicitPolyQuadrature<N-1> base; // Base polynomials corresponding to removal of axis k
bool auto_apply_TS; // If quad method is auto chosen, indicates whether TS is applied
bool auto_apply_TS; // If quad method is auto chosen, indicates whether TS is applied // what is ts ?
IntegralType type; // Whether an inner integral, or outer of two kinds
std::array<std::tuple<int,ImplicitPolyQuadrature<N-1>>,N-1> base_other; // Stores other base cases, besides k, when in aggregate mode
@ -611,6 +611,7 @@ namespace algoim
assert(0 <= k && k <= N);
// If there are no interfaces, apply rectangular tensor-product Gauss-Legendre quadrature
// 所以这个是积分域包裹了整个box时的做法?
if (k == N)
{
assert(!auto_apply_TS);
@ -620,7 +621,7 @@ namespace algoim
real w = 1.0;
for (int dim = 0; dim < N; ++dim)
{
x(dim) = GaussQuad::x(q, i(dim));
x(dim) = GaussQuad::x(q, i(dim)); // 0 <= i(dim) < q
w *= GaussQuad::w(q, i(dim));
}
f(x, w);
@ -629,6 +630,7 @@ namespace algoim
}
// Determine maximum possible number of roots; used to allocate a small buffer
// ???
int max_count = 2;
for (size_t i = 0; i < phi.count(); ++i)
max_count += phi.poly(i).ext(k) - 1;

3
compile_output.txt

@ -0,0 +1,3 @@
C:\Users\Dtouch\AppData\Local\Temp\ccH8XvNG.s:37:2: error: unknown directive
.ident "GCC: (GNU) 13.1.0"
^

17
exampleA-phase0.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="9" NumberOfVerts="9" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.345515 0.235132 0 0.345515 0.400143 0 0.345515 0.565154 0 0.143695 0.289928 0 0.143695 0.358521 0 0.143695 0.427114 0 0.547335 0.336934 0 0.547335 0.434555 0 0.547335 0.532176 0 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.0337176 0.0539481 0.0337176 0.00434131 0.00694609 0.00434131 0.00617853 0.00988565 0.00617853 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleA-phase1.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="36" NumberOfVerts="36" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.0574101 0.112702 0 0.0574101 0.5 0 0.0574101 0.887298 0 0.00718564 0.112702 0 0.00718564 0.5 0 0.00718564 0.887298 0 0.107635 0.112702 0 0.107635 0.5 0 0.107635 0.887298 0 0.345515 0.0210881 0 0.345515 0.0935574 0 0.345515 0.166027 0 0.345515 0.656768 0 0.345515 0.806586 0 0.345515 0.956404 0 0.143695 0.0304259 0 0.143695 0.134984 0 0.143695 0.239542 0 0.143695 0.509389 0 0.143695 0.723537 0 0.143695 0.937684 0 0.547335 0.0347715 0 0.547335 0.154264 0 0.547335 0.273756 0 0.547335 0.610106 0 0.547335 0.780292 0 0.547335 0.950477 0 0.788105 0.112702 0 0.788105 0.5 0 0.788105 0.887298 0 0.602731 0.112702 0 0.602731 0.5 0 0.602731 0.887298 0 0.973478 0.112702 0 0.973478 0.5 0 0.973478 0.887298 0 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.0196943 0.0315108 0.0196943 0.00610013 0.0097602 0.00610013 0.00610013 0.0097602 0.00610013 0.014808 0.0236928 0.014808 0.0306131 0.0489809 0.0306131 0.0066176 0.0105882 0.0066176 0.0135536 0.0216858 0.0135536 0.00756278 0.0121004 0.00756278 0.0107712 0.0172339 0.0107712 0.0726896 0.116303 0.0726896 0.022515 0.036024 0.022515 0.022515 0.036024 0.022515 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleA-surf.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="12" NumberOfVerts="12" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.345515 0.613172 0 0.345515 0.187115 0 0.143695 0.447074 0 0.143695 0.269968 0 0.547335 0.560583 0 0.547335 0.308527 0 0.57482 0.408503 0 0.125341 0.408503 0 0.458404 0.214799 0 0.215637 0.214799 0 0.512499 0.602207 0 0.319689 0.602207 0 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.266604 0.284871 0.0446533 0.0543824 0.0436452 0.0391181 0.272245 0.257001 0.0401801 0.0363211 0.0528576 0.0361288 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleB-phase0.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="135" NumberOfVerts="135" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.026105 0.0752074 0.112702 0.026105 0.0752074 0.5 0.026105 0.0752074 0.887298 0.115814 0.0752074 0.112702 0.115814 0.0752074 0.5 0.115814 0.0752074 0.887298 0.205524 0.0752074 0.112702 0.205524 0.0752074 0.5 0.205524 0.0752074 0.887298 0.303632 0.0752074 0.17436 0.303632 0.0752074 0.534745 0.303632 0.0752074 0.89513 0.551071 0.0752074 0.252744 0.551071 0.0752074 0.578915 0.551071 0.0752074 0.905086 0.798511 0.0752074 0.182379 0.798511 0.0752074 0.539264 0.798511 0.0752074 0.896149 0.885107 0.0752074 0.112702 0.885107 0.0752074 0.5 0.885107 0.0752074 0.887298 0.935257 0.0752074 0.112702 0.935257 0.0752074 0.5 0.935257 0.0752074 0.887298 0.985407 0.0752074 0.112702 0.985407 0.0752074 0.5 0.985407 0.0752074 0.887298 0.0501858 0.333657 0.112702 0.0501858 0.333657 0.5 0.0501858 0.333657 0.887298 0.222649 0.333657 0.112702 0.222649 0.333657 0.5 0.222649 0.333657 0.887298 0.395112 0.333657 0.112702 0.395112 0.333657 0.5 0.395112 0.333657 0.887298 0.48534 0.333657 0.130528 0.48534 0.333657 0.510046 0.48534 0.333657 0.889563 0.622942 0.333657 0.157526 0.622942 0.333657 0.525259 0.622942 0.333657 0.892992 0.760544 0.333657 0.132931 0.760544 0.333657 0.511399 0.760544 0.333657 0.889868 0.82306 0.333657 0.112702 0.82306 0.333657 0.5 0.82306 0.333657 0.887298 0.900293 0.333657 0.112702 0.900293 0.333657 0.5 0.900293 0.333657 0.887298 0.977526 0.333657 0.112702 0.977526 0.333657 0.5 0.977526 0.333657 0.887298 0.0522275 0.592107 0.112702 0.0522275 0.592107 0.5 0.0522275 0.592107 0.887298 0.231707 0.592107 0.112702 0.231707 0.592107 0.5 0.231707 0.592107 0.887298 0.411186 0.592107 0.112702 0.411186 0.592107 0.5 0.411186 0.592107 0.887298 0.515421 0.592107 0.140863 0.515421 0.592107 0.515869 0.515421 0.592107 0.890875 0.694143 0.592107 0.185559 0.694143 0.592107 0.541056 0.694143 0.592107 0.896552 0.872865 0.592107 0.148918 0.872865 0.592107 0.520408 0.872865 0.592107 0.891898 0.933339 0.592107 0.112702 0.933339 0.592107 0.5 0.933339 0.592107 0.887298 0.962436 0.592107 0.112702 0.962436 0.592107 0.5 0.962436 0.592107 0.887298 0.991533 0.592107 0.112702 0.991533 0.592107 0.5 0.991533 0.592107 0.887298 0.0447087 0.704809 0.112702 0.0447087 0.704809 0.5 0.0447087 0.704809 0.887298 0.19835 0.704809 0.112702 0.19835 0.704809 0.5 0.19835 0.704809 0.887298 0.351991 0.704809 0.112702 0.351991 0.704809 0.5 0.351991 0.704809 0.887298 0.464693 0.704809 0.160197 0.464693 0.704809 0.526764 0.464693 0.704809 0.893331 0.69835 0.704809 0.240214 0.69835 0.704809 0.571854 0.69835 0.704809 0.903495 0.932007 0.704809 0.203362 0.932007 0.704809 0.551088 0.932007 0.704809 0.898814 0.0337444 0.833657 0.112702 0.0337444 0.833657 0.5 0.0337444 0.833657 0.887298 0.149707 0.833657 0.112702 0.149707 0.833657 0.5 0.149707 0.833657 0.887298 0.265669 0.833657 0.112702 0.265669 0.833657 0.5 0.265669 0.833657 0.887298 0.378371 0.833657 0.178029 0.378371 0.833657 0.536812 0.378371 0.833657 0.895596 0.649707 0.833657 0.305268 0.649707 0.833657 0.608513 0.649707 0.833657 0.911758 0.921043 0.833657 0.300714 0.921043 0.833657 0.605947 0.921043 0.833657 0.911179 0.0215358 0.962506 0.112702 0.0215358 0.962506 0.5 0.0215358 0.962506 0.887298 0.0955435 0.962506 0.112702 0.0955435 0.962506 0.5 0.0955435 0.962506 0.887298 0.169551 0.962506 0.112702 0.169551 0.962506 0.5 0.169551 0.962506 0.887298 0.282253 0.962506 0.18945 0.282253 0.962506 0.543248 0.282253 0.962506 0.897047 0.595544 0.962506 0.36423 0.595544 0.962506 0.641738 0.595544 0.962506 0.919247 0.908834 0.962506 0.377451 0.908834 0.962506 0.649189 0.908834 0.962506 0.920926 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.00331295 0.00530073 0.00331295 0.00530073 0.00848116 0.00530073 0.00331295 0.00530073 0.00331295 0.00850289 0.0136046 0.00850289 0.012313 0.0197009 0.012313 0.00842031 0.0134725 0.00842031 0.00185202 0.00296323 0.00185202 0.00296323 0.00474117 0.00296323 0.00185202 0.00296323 0.00185202 0.0101905 0.0163047 0.0101905 0.0163047 0.0260876 0.0163047 0.0101905 0.0163047 0.0101905 0.00796724 0.0127476 0.00796724 0.0123518 0.0197628 0.0123518 0.00794523 0.0127124 0.00794523 0.00456352 0.00730164 0.00456352 0.00730164 0.0116826 0.00730164 0.00456352 0.00730164 0.00456352 0.00662814 0.010605 0.00662814 0.010605 0.016968 0.010605 0.00662814 0.010605 0.00662814 0.0063907 0.0102251 0.0063907 0.00969316 0.0155091 0.00969316 0.00633078 0.0101292 0.00633078 0.00107454 0.00171927 0.00107454 0.00171927 0.00275083 0.00171927 0.00107454 0.00171927 0.00107454 0.00282871 0.00452594 0.00282871 0.00452594 0.0072415 0.00452594 0.00282871 0.00452594 0.00282871 0.00407163 0.00651461 0.00407163 0.00589389 0.00943022 0.00589389 0.00386235 0.00617976 0.00386235 0.003416 0.0054656 0.003416 0.0054656 0.00874497 0.0054656 0.003416 0.0054656 0.003416 0.00740449 0.0118472 0.00740449 0.0100133 0.0160212 0.0100133 0.00629931 0.0100789 0.00629931 0.00136257 0.00218011 0.00136257 0.00218011 0.00348817 0.00218011 0.00136257 0.00218011 0.00136257 0.00526913 0.00843061 0.00526913 0.0066127 0.0105803 0.0066127 0.00404699 0.00647519 0.00404699 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleB-phase1.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="54" NumberOfVerts="54" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.303632 0.0752074 0.00783167 0.303632 0.0752074 0.0347452 0.303632 0.0752074 0.0616586 0.551071 0.0752074 0.0177877 0.551071 0.0752074 0.078915 0.551071 0.0752074 0.140042 0.798511 0.0752074 0.00885025 0.798511 0.0752074 0.039264 0.798511 0.0752074 0.0696778 0.48534 0.333657 0.0022643 0.48534 0.333657 0.0100455 0.48534 0.333657 0.0178268 0.622942 0.333657 0.00569346 0.622942 0.333657 0.025259 0.622942 0.333657 0.0448245 0.760544 0.333657 0.0025694 0.760544 0.333657 0.0113991 0.760544 0.333657 0.0202289 0.515421 0.592107 0.00357694 0.515421 0.592107 0.0158691 0.515421 0.592107 0.0281612 0.694143 0.592107 0.00925408 0.694143 0.592107 0.0410556 0.694143 0.592107 0.0728572 0.872865 0.592107 0.00460009 0.872865 0.592107 0.0204083 0.872865 0.592107 0.0362164 0.464693 0.704809 0.00603264 0.464693 0.704809 0.0267638 0.464693 0.704809 0.0474949 0.69835 0.704809 0.0161962 0.69835 0.704809 0.0718543 0.69835 0.704809 0.127512 0.932007 0.704809 0.0115154 0.932007 0.704809 0.0510879 0.932007 0.704809 0.0906604 0.378371 0.833657 0.0082976 0.378371 0.833657 0.0368122 0.378371 0.833657 0.0653269 0.649707 0.833657 0.0244592 0.649707 0.833657 0.108513 0.649707 0.833657 0.192567 0.921043 0.833657 0.0238807 0.921043 0.833657 0.105947 0.921043 0.833657 0.188013 0.282253 0.962506 0.00974828 0.282253 0.962506 0.0432482 0.282253 0.962506 0.076748 0.595544 0.962506 0.0319483 0.595544 0.962506 0.141738 0.595544 0.962506 0.251528 0.908834 0.962506 0.0336276 0.908834 0.962506 0.149189 0.908834 0.962506 0.264749 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.000634995 0.00101599 0.000634995 0.00230757 0.00369212 0.00230757 0.000717581 0.00114813 0.000717581 0.000163352 0.000261364 0.000163352 0.000657186 0.0010515 0.000657186 0.000185364 0.000296582 0.000185364 0.000209477 0.000335163 0.000209477 0.000867118 0.00138739 0.000867118 0.000269396 0.000431034 0.000269396 0.00023027 0.000368432 0.00023027 0.000989151 0.00158264 0.000989151 0.00043955 0.00070328 0.00043955 0.000588478 0.000941565 0.000588478 0.00277549 0.00444079 0.00277549 0.00169366 0.00270985 0.00169366 0.000498914 0.000798263 0.000498914 0.00261617 0.00418587 0.00261617 0.00172105 0.00275368 0.00172105 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleB-surf.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="18" NumberOfVerts="18" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.303632 0.0752074 0.0694903 0.551071 0.0752074 0.15783 0.798511 0.0752074 0.0785281 0.48534 0.333657 0.0200911 0.622942 0.333657 0.050518 0.760544 0.333657 0.0227983 0.515421 0.592107 0.0317381 0.694143 0.592107 0.0821113 0.872865 0.592107 0.0408165 0.464693 0.704809 0.0535275 0.69835 0.704809 0.143709 0.932007 0.704809 0.102176 0.378371 0.833657 0.0736245 0.649707 0.833657 0.217026 0.921043 0.833657 0.211893 0.282253 0.962506 0.0864963 0.595544 0.962506 0.283477 0.908834 0.962506 0.298377 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.0496183 0.0607083 0.0452207 0.033372 0.0478913 0.0324024 0.0280624 0.0417202 0.0328326 0.0207838 0.0292379 0.0227588 0.0430822 0.0560377 0.0365821 0.0320073 0.0405146 0.0244515 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleC-surf.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="15" NumberOfVerts="15" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.047469 0.804167 0 0.047469 0.35028 0 0.210596 0.722305 0 0.210596 0.420746 0 0.373722 0.603375 0 0.373722 0.527689 0 0.463715 0.524137 0 0.463715 0.594972 0 0.60985 0.37046 0 0.60985 0.709659 0 0.755984 0.131734 0 0.755984 0.83074 0 0.813994 0.881873 0 0.86721 0.931259 0 0.920426 0.983906 0 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.12536 0.122026 0.220307 0.214732 0.15198 0.144566 0.14338 0.131986 0.263692 0.21508 0.275384 0.138375 0.0514321 0.0844645 0.0547052 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

17
exampleC-vol.vtp

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="81" NumberOfVerts="81" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0">
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">0.047469 0.0394771 0 0.047469 0.17514 0 0.047469 0.310802 0 0.047469 0.401433 0 0.047469 0.577223 0 0.047469 0.753013 0 0.047469 0.826238 0 0.047469 0.902083 0 0.047469 0.977929 0 0.210596 0.0474188 0 0.210596 0.210373 0 0.210596 0.373328 0 0.210596 0.454733 0 0.210596 0.571526 0 0.210596 0.688319 0 0.210596 0.753602 0 0.210596 0.861153 0 0.210596 0.968703 0 0.373722 0.0594714 0 0.373722 0.263844 0 0.373722 0.468217 0 0.373722 0.536219 0 0.373722 0.565532 0 0.373722 0.594845 0 0.373722 0.648076 0 0.373722 0.801688 0 0.373722 0.9553 0 0.463715 0.0590711 0 0.463715 0.262068 0 0.463715 0.465066 0 0.463715 0.53212 0 0.463715 0.559555 0 0.463715 0.586989 0 0.463715 0.64062 0 0.463715 0.797486 0 0.463715 0.954353 0 0.60985 0.0417514 0 0.60985 0.18523 0 0.60985 0.328708 0 0.60985 0.408688 0 0.60985 0.540059 0 0.60985 0.67143 0 0.60985 0.742381 0 0.60985 0.854829 0 0.60985 0.967278 0 0.755984 0.0148467 0 0.755984 0.0658671 0 0.755984 0.116888 0 0.755984 0.210513 0 0.755984 0.481237 0 0.755984 0.751961 0 0.755984 0.849816 0 0.755984 0.91537 0 0.755984 0.980924 0 0.813994 0.0993885 0 0.813994 0.440936 0 0.813994 0.782484 0 0.813994 0.895186 0 0.813994 0.940936 0 0.813994 0.986687 0 0.86721 0.104954 0 0.86721 0.46563 0 0.86721 0.826305 0 0.86721 0.939006 0 0.86721 0.96563 0 0.86721 0.992253 0 0.920426 0.110888 0 0.920426 0.491953 0 0.920426 0.873019 0 0.920426 0.98572 0 0.920426 0.991953 0 0.920426 0.998186 0 0.943135 0.112702 0 0.943135 0.5 0 0.943135 0.887298 0 0.967956 0.112702 0 0.967956 0.5 0 0.967956 0.887298 0 0.992777 0.112702 0 0.992777 0.5 0 0.992777 0.887298 0 </DataArray>
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 </DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 </DataArray>
</Verts>
<PointData Scalars="w">
<DataArray type="Float32" Name="w" NumberOfComponents="1" format="ascii">0.0113838 0.0182142 0.0113838 0.014751 0.0236016 0.014751 0.00636445 0.0101831 0.00636445 0.0218784 0.0350054 0.0218784 0.0156807 0.0250892 0.0156807 0.0144398 0.0231037 0.0144398 0.0171495 0.0274392 0.0171495 0.00245976 0.00393562 0.00245976 0.01289 0.0206241 0.01289 0.0152597 0.0244155 0.0152597 0.0020623 0.00329969 0.0020623 0.011792 0.0188671 0.011792 0.0172569 0.027611 0.0172569 0.0158007 0.0252811 0.0158007 0.0135248 0.0216396 0.0135248 0.00383531 0.00613649 0.00383531 0.0203508 0.0325613 0.0203508 0.00492783 0.00788452 0.00492783 0.00934972 0.0149596 0.00934972 0.0012524 0.00200384 0.0012524 0.0157973 0.0252757 0.0157973 0.00116608 0.00186572 0.00116608 0.0104315 0.0166904 0.0104315 0.000170626 0.000273002 0.000170626 0.00494509 0.00791214 0.00494509 0.00791214 0.0126594 0.00791214 0.00494509 0.00791214 0.00494509 </DataArray>
</PointData>
</Piece>
</PolyData>
</VTKFile>

BIN
main.exe

Binary file not shown.

BIN
test

Binary file not shown.

9
test.cpp

@ -0,0 +1,9 @@
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
Loading…
Cancel
Save