|
Robotran C Documentation
|
Go to the documentation of this file.
6 #ifndef _MBS_INLINE_HH_
7 #define _MBS_INLINE_HH_
16 MbsInline(std::string cad_file,glm::vec3
const& color,
18 float transparency = 1.0,
19 glm::vec3
const& trans_pos = glm::vec3(0.0f),
20 glm::vec3
const& trans_scale = glm::vec3(1.0, 1.0, 1.0),
21 glm::vec3
const& trans_rot = glm::vec3(0.0f),
22 float shiny_mat = 250.f,
23 glm::vec3
const& specular_mat = glm::vec3(1.0f, 1.0f, 1.0f),
24 const char* name =
"none");
29 bool LoadSTL(std::string cad_file, glm::vec3 color);
31 bool LoadOBJ(std::string cad_file, std::string dir_file);
bool LoadOBJ(std::string cad_file, std::string dir_file)
load a .obj file (interface)
Definition: MbsInline.cc:160
MbsInline(std::string cad_file, glm::vec3 const &color, MbsWorld3D *world_3d, float transparency=1.0, glm::vec3 const &trans_pos=glm::vec3(0.0f), glm::vec3 const &trans_scale=glm::vec3(1.0, 1.0, 1.0), glm::vec3 const &trans_rot=glm::vec3(0.0f), float shiny_mat=250.f, glm::vec3 const &specular_mat=glm::vec3(1.0f, 1.0f, 1.0f), const char *name="none")
constructor
Definition: MbsInline.cc:32
Definition: MpegFrameCaptureOptions.hh:6
A basic loader for VRML2.0/VRML97 files.
Definition: parse_stl.h:29
bool int_in_range(int x, int min, int max)
check if integer is in range
Definition: MbsInline.cc:17
stl_data parse_stl(const std::string &stl_path)
Definition: parse_stl.cpp:39
bool LoadSTL(std::string cad_file, glm::vec3 color)
load a .stl file (interface)
Definition: MbsInline.cc:129
std::vector< triangle > triangles
Definition: parse_stl.h:31
Definition: MbsInline.hh:13
virtual ~MbsInline()
destructor
Definition: MbsInline.cc:115