LoginSignup
0
1

More than 5 years have passed since last update.

SIRIS > VTK > ASCII VTK Files > POLYGONS 1152 4608の4608 > the number of cell list size

Last updated at Posted at 2018-04-27
動作環境
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 16.04.4 LTS desktop amd64
TensorFlow v1.7.0
cuDNN v5.1 for Linux
CUDA v8.0
Python 3.5.2
IPython 6.0.0 -- An enhanced Interactive Python.
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
scipy v0.19.1
geopandas v0.3.0
MATLAB R2017b (Home Edition)
ADDA v.1.3b6
gnustep-gui-runtime v0.24.0-3.1
PyMieScatt v1.7.0

SIRIS | Geometry > Gaussian random sphere (@ SIRIS) > Output > ,and which points should be connected to form the trinangulation
で見られたvtk.outのフォーマット

POLYGONS    1152   4608
           3           0           1           2
           3           0           2           3

上記の4608は何を意味するのか?

以下に使用例がある。
https://www.visitusers.org/index.php?title=ASCII_VTK_Files

そこから下記へのリンクが貼ってある。
http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html

POLYGONS n size
numPoints 0 , i 0 ,j 0 ,k 0 , ...
numPoints 1 , i 1 ,j 1 ,k 1 , ...

4608はsizeということらしい。

(下記、太字は強調のため)

Polygonal Data
The polygonal dataset consists of arbitrary combinations of surface graphics primitives vertices (and polyvertices), lines (and polylines), polygons (of various types), and triangle strips. Polygonal data is defined by the POINTS VERTICES, LINES, POLYGONS, orTRIANGLE_ STRIPS sections. The POINTS definition is the same as we saw for structured grid datasets. The VERTICES, LINES, POLYGONS, orTRIANGLE_ STRIPS keywords define the polygonal dataset topology. Each of these keywords requires two parameters: the number of cells n and the size of the cell list size. The cell list size is the total number of integer values required to represent the list (i. e., sum of numPoints and 4 VTK 4. 2 File Formats connectivity indices over each cell). None of the keywords VERTICES, LINES, POLYGONS, orTRIANGLE_ STRIPS is required.

上記例では

1152: the number of cells
4608: the number of cell list size

具体的にはっきりしないが、現在の目的には使わないだろう。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1