| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/cad/meshdev/files/ |
Upload File : |
--- src/Mesh.cpp.orig 2012-02-06 16:12:15.000000000 +0100
+++ src/Mesh.cpp 2012-02-06 16:14:59.000000000 +0100
@@ -18,6 +18,7 @@
#include "Mesh.h"
#include "FileVrml1.h"
#include "FileVrml2.h"
+#include "FileSTL.h"
#include <fstream>
#include <iostream>
@@ -173,6 +174,12 @@
{
file_format = INVENTOR_FILE;
}
+ // STL extension
+ else if( extension == "STL" || extension == "stl" )
+ {
+ file_format = STL_FILE;
+ }
+
// Other extension
else
{
@@ -194,6 +201,10 @@
case VRML_2_FILE :
return ReadVrml2( *this, file_name );
+ // STL file
+ case STL_FILE:
+ return ReadSTL( *this, file_name );
+
// Other file
default :
// Unknown file format