Skip to content

Commit c9f9997

Browse files
committed
Use floats in IfcPython
1 parent 4866953 commit c9f9997

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ifcwrap/IfcPython.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929

3030
namespace std {
3131
%template(IntVector) vector<int>;
32-
%template(FloatVector) vector<double>;
32+
%template(FloatVector) vector<float>;
3333
%template(ObjVector) vector<IfcGeomObject>;
3434
};

src/ifcwrap/Interface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ namespace IfcGeomObjects {
2828
class IfcMesh {
2929
public:
3030
int id;
31-
std::vector<double> verts;
31+
std::vector<float> verts;
3232
std::vector<int> faces;
3333
std::vector<int> edges;
34-
std::vector<double> normals;
34+
std::vector<float> normals;
3535
std::string brep_data;
3636
};
3737

@@ -42,7 +42,7 @@ namespace IfcGeomObjects {
4242
std::string name;
4343
std::string type;
4444
std::string guid;
45-
std::vector<double> matrix;
45+
std::vector<float> matrix;
4646
const std::vector<int> name_as_intvector() {
4747
std::vector<int> r;
4848
for ( std::string::const_iterator it = name.begin(); it != name.end(); ++ it ) r.push_back(*it);

0 commit comments

Comments
 (0)