stlfile.hpp
Go to the documentation of this file.
STLFile(const std::vector< Vec3D > &vertex, const std::vector< VTriangle > &triangle)
Constructor for $STLFile from triangle and vertex data.
STLFile(const std::string &filename, double vertex_matching_eps=1.0e-9, double signed_volume_eps=1.0e-15)
Constructor for STL data from file.
Definition: stlfile.cpp:280
void get_bbox(Vec3D &min, Vec3D &max) const
Return bounding box in vectors min and max.
Definition: stlfile.hpp:128
void debug_print(std::ostream &os) const
Print debugging information to os.
Definition: stlfile.cpp:387
void save(const std::string &filename, bool ascii=true) const
Write to file.
Definition: stlfile.cpp:340
bool inside(const Vec3D &x)
Return if point x is inside solid.
Definition: stlfile.hpp:122
void get_bbox(Vec3D &min, Vec3D &max) const
Return bounding box in vectors min and max.
Definition: vtriangle.cpp:374
bool inside(const Vec3D &x) const
Return if point x is inside solid.
Definition: vtriangle.cpp:284
Three dimensional vectors.
Vertex-based triangle representation.