FrontISTR  5.7.1
Large-scale structural analysis program with finit element method
hecmw_vis_resampling.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 FrontISTR Commons
3  * This software is released under the MIT License, see LICENSE.txt
4  *****************************************************************************/
5 
6 #ifndef HECMW_VIS_RESAMPLING_H_INCLUDED
7 #define HECMW_VIS_RESAMPLING_H_INCLUDED
8 /*
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <math.h>
12 #include <string.h>
13 #include <memory.h>
14 #include "hecmw_struct.h"
15 #include "hecmw_util.h"
16 #include "hecmw_io.h"
17 */
18 #define MASTER_PE 0
19 
20 #define PI 3.1415926
21 #define HEX_N_NODE 8
22 #define HEX_N_FACE 6
23 #define HEX_NODE_INDEX 255 /* 2^8 */
24 #define HEX_FACE_INDEX 63 /* 2^6 */
25 
26 #define MAX_LINE_LEN 256
27 
28 typedef struct surfacep_info {
29  double vertex[9];
30  double color[3];
33 
34 typedef struct head_surface_info {
38 
39 typedef struct in_surface {
40  int n_vertex;
41  int n_patch;
42  double *vertex;
43  int *patch;
44  double *color;
46 
47 typedef struct voxel_info {
48  double dx;
49  double dy;
50  double dz;
51  double orig_x;
52  double orig_y;
53  double orig_z;
54  int level[3];
58 
59 typedef struct voxel_data {
60  int n_voxel;
63 
64 typedef struct extent_data {
65  double x_min;
66  double x_max;
67  double y_min;
68  double y_max;
69  double z_min;
70  double z_max;
72 
73 typedef struct cube_pointer_struct {
74  int code[3];
75  double field;
76  double grad[3];
78 
80 
81 typedef struct cube_head_struct {
82  int point_num;
85 typedef struct pvr_data {
86  int myID;
87  int parentID;
88  int level;
89  int flag;
90  double field;
91  double grad[3];
93 
94 typedef struct cont_data {
95  int n_var;
96  char **name;
98 #endif /* HECMW_VIS_RESAMPLING_H_INCLUDED */
struct in_surface In_surface
struct surfacep_info Surfacep_info
struct extent_data Extent_data
struct voxel_info Voxel_info
struct pvr_data PVR_data
struct cube_pointer_struct Cube_point
struct voxel_data Voxel_data
struct head_surface_info Head_surfacep_info
struct cont_data Cont_data
struct cube_head_struct Cube_head
struct cube_pointer_struct * cube_link
struct cube_pointer_struct * next_point
Surfacep_info * next_patch
double grad[3]
struct surfacep_info * next_patch
Voxel_info * info