-
-
Notifications
You must be signed in to change notification settings - Fork 902
Expand file tree
/
Copy pathParseIfcFile.h
More file actions
37 lines (29 loc) · 920 Bytes
/
ParseIfcFile.h
File metadata and controls
37 lines (29 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PARSEIFCFILE_H
#define PARSEIFCFILE_H
#include "../ifcgeom/Iterator.h"
#include "osg/Geometry"
#include "osg/Material"
#include "osg/MatrixTransform"
#include "osg/ref_ptr"
#include <QObject>
#include <QString>
#include <string>
#include <vector>
class ParseIfcFile : public QObject {
public:
ParseIfcFile();
~ParseIfcFile();
bool Parse(
const std::string& filePath,
std::vector<osg::ref_ptr<osg::MatrixTransform>>& matrixTransforms);
private:
void buildTriangleNodes(
const std::vector<int>& fVertIds,
const std::vector<double>& elemVertices,
const std::vector<double>& elemNormals,
size_t index,
osg::ref_ptr<osg::Vec3Array> osgVertices,
osg::ref_ptr<osg::Vec3Array> osgNormals);
osg::ref_ptr<osg::Material> getOsgMaterial(const ifcopenshell::geometry::taxonomy::style::ptr& material);
};
#endif // PARSEIFCFILE_H