22 point(
float xp,
float yp,
float zp) :
x(xp),
y(yp),
z(zp) {}
56 Vec3(
float X,
float Y,
float Z);
80 void checkMesh( std::vector<triangle> &triangles );
82 template <
size_t N,
typename Nvalue,
size_t M,
typename Mvalue >
void readSTLGeom(char *argv[], const real *xyz)
Definition: geomSTL.cpp:130
Vec3 Normalize()
Definition: geomSTL.cpp:33
float Y
Definition: geomSTL.h:61
structure to store normals and vertices of a triangle
Definition: geomSTL.h:29
Vec3 Vectors()
Definition: geomSTL.cpp:21
GeomSTL()
Definition: geomSTL.h:73
point normal
Definition: geomSTL.h:30
point parse_point(std::ifstream &s)
Definition: geomSTL.cpp:78
point v1
Definition: geomSTL.h:31
triangle(point normalp, point v1p, point v2p, point v3p)
Definition: geomSTL.h:34
stl_data parse_stl(const std::string &stl_path)
Definition: geomSTL.cpp:86
float Z
Definition: geomSTL.h:61
point()
Definition: geomSTL.h:21
int geom_nn
Definition: geomSTL.h:67
Vec3(void)
Definition: geomSTL.cpp:5
std::string name
Definition: geomSTL.h:46
void checkMesh(std::vector< triangle > &triangles)
Definition: geomSTL.cpp:265
float parse_float(std::ifstream &s)
Definition: geomSTL.cpp:70
point v3
Definition: geomSTL.h:33
real xyz[6]
Definition: geomSTL.h:70
float z
Definition: geomSTL.h:19
float X
Definition: geomSTL.h:61
structure to store vector of triangles read in from *.stl file
Definition: geomSTL.h:45
double real
Definition: definitions.h:37
stl_data parseSTL(const std::string &stl_path)
Structure to hold coordinates of a point.
Definition: geomSTL.h:17
real *__restrict__ triangle_center
Definition: geomSTL.h:69
stl_data(std::string namep)
Definition: geomSTL.h:49
float y
Definition: geomSTL.h:19
real * geom_xyz
Definition: geomSTL.h:68
float Length()
Definition: geomSTL.cpp:16
point(float xp, float yp, float zp)
Definition: geomSTL.h:22
~Vec3(void)
Definition: geomSTL.cpp:48
void construct(real *xyz1)
Definition: geomSTL.cpp:119
float x
Definition: geomSTL.h:18
point v2
Definition: geomSTL.h:32
std::vector< triangle > triangles
Definition: geomSTL.h:47