VS fixes
This commit is contained in:
@@ -54,10 +54,10 @@ namespace Ray3D {
|
||||
//while ((dir = readdir(d)) != NULL) {
|
||||
for (std::experimental::filesystem::directory_entry entry : std::experimental::filesystem::directory_iterator(d)) {
|
||||
//const std::string absFile = folder + "/" + dir->d_name;
|
||||
const std::string absFile = entry.path().native();
|
||||
const std::string absFile = entry.path().string();
|
||||
if (endsWith(absFile, ".obj")) {
|
||||
//std::string name = std::string(dir->d_name);
|
||||
std::string name = entry.path().filename();
|
||||
std::string name = entry.path().filename().string();
|
||||
name = name.substr(0, name.length() - 4); // without extension
|
||||
load(absFile, name);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
/** one triangle */
|
||||
struct Face {
|
||||
VNT vnt[3];
|
||||
Face(VNT v1, VNT v2, VNT v3) : vnt({v1,v2,v3}) {;}
|
||||
Face(VNT v1, VNT v2, VNT v3) : vnt{v1,v2,v3} {;}
|
||||
};
|
||||
|
||||
/** internal data */
|
||||
|
||||
Reference in New Issue
Block a user