mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Use floats in IfcPython
This commit is contained in:
@@ -29,6 +29,6 @@
|
|||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
%template(IntVector) vector<int>;
|
%template(IntVector) vector<int>;
|
||||||
%template(FloatVector) vector<double>;
|
%template(FloatVector) vector<float>;
|
||||||
%template(ObjVector) vector<IfcGeomObject>;
|
%template(ObjVector) vector<IfcGeomObject>;
|
||||||
};
|
};
|
||||||
@@ -28,10 +28,10 @@ namespace IfcGeomObjects {
|
|||||||
class IfcMesh {
|
class IfcMesh {
|
||||||
public:
|
public:
|
||||||
int id;
|
int id;
|
||||||
std::vector<double> verts;
|
std::vector<float> verts;
|
||||||
std::vector<int> faces;
|
std::vector<int> faces;
|
||||||
std::vector<int> edges;
|
std::vector<int> edges;
|
||||||
std::vector<double> normals;
|
std::vector<float> normals;
|
||||||
std::string brep_data;
|
std::string brep_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ namespace IfcGeomObjects {
|
|||||||
std::string name;
|
std::string name;
|
||||||
std::string type;
|
std::string type;
|
||||||
std::string guid;
|
std::string guid;
|
||||||
std::vector<double> matrix;
|
std::vector<float> matrix;
|
||||||
const std::vector<int> name_as_intvector() {
|
const std::vector<int> name_as_intvector() {
|
||||||
std::vector<int> r;
|
std::vector<int> r;
|
||||||
for ( std::string::const_iterator it = name.begin(); it != name.end(); ++ it ) r.push_back(*it);
|
for ( std::string::const_iterator it = name.begin(); it != name.end(); ++ it ) r.push_back(*it);
|
||||||
|
|||||||
Reference in New Issue
Block a user