-
Notifications
You must be signed in to change notification settings - Fork 0
/
VoxelToTopy.h
34 lines (27 loc) · 1011 Bytes
/
VoxelToTopy.h
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
/*
* VoxelToTopy.h
*
* Created on: Aug 4, 2015
* Author: friedrich
*/
#ifndef VOXELTOTOPY_H_
#define VOXELTOTOPY_H_
#include <string>
#include <vector>
#include "VoxelListCategorizer.h"
/*
*
*/
class VoxelToTopy {
public:
VoxelToTopy();
virtual ~VoxelToTopy();
void calculateFixtureNodes(std::string data, VoxelListCategorizer &voxelListCategorizer,std::vector<int> cellArray, std::vector<int> dimensions);
void calculateLoadNodes(std::string data, VoxelListCategorizer &voxelListCategorizer,std::vector<int> cellArray, std::vector<int> dimensions);
static int convertIndexCell(int index, std::vector<int> dimensions);
static int convertIndexNode(int index, std::vector<int> dimensions);
static int getCellIndex(int xCoord, int yCoord, int zCoord, std::vector<int> dimensions);
static int getNodeIndex(int xCoord, int yCoord, int zCoord,std::vector<int> dimensions);
static std::vector<int> getCellCoordinates(int index, std::vector<int> dimensions);
};
#endif /* VOXELTOTOPY_H_ */