Use floats in IfcPython

This commit is contained in:
Thomas Krijnen
2012-04-08 08:42:03 +00:00
parent 4866953119
commit c9f9997e67
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -29,6 +29,6 @@
namespace std {
%template(IntVector) vector<int>;
%template(FloatVector) vector<double>;
%template(FloatVector) vector<float>;
%template(ObjVector) vector<IfcGeomObject>;
};
+3 -3
View File
@@ -28,10 +28,10 @@ namespace IfcGeomObjects {
class IfcMesh {
public:
int id;
std::vector<double> verts;
std::vector<float> verts;
std::vector<int> faces;
std::vector<int> edges;
std::vector<double> normals;
std::vector<float> normals;
std::string brep_data;
};
@@ -42,7 +42,7 @@ namespace IfcGeomObjects {
std::string name;
std::string type;
std::string guid;
std::vector<double> matrix;
std::vector<float> matrix;
const std::vector<int> name_as_intvector() {
std::vector<int> r;
for ( std::string::const_iterator it = name.begin(); it != name.end(); ++ it ) r.push_back(*it);