OpenLexocad  27.0
PolygonMesh.h
Go to the documentation of this file.
1 
2 #include <Geom/Pnt.h>
3 #include <OpenLxApp/Geometry.h>
5 #include <Topo/Shape.h>
6 
7 #include <vector>
8 
9 FORWARD_DECL(Mesh, PolygonMesh)
10 
11 namespace OpenLxApp
12 {
20 {
21  PROXY_HEADER(PolygonMesh, Mesh::PolygonMesh, IFCPOLYGONMESH)
22 
23  DECL_PROPERTY(PolygonMesh, Polygons, std::vector<int>)
24  DECL_PROPERTY(PolygonMesh, Points, std::vector<Geom::Pnt>)
25 public:
26  ~PolygonMesh(void);
27  void setMesh(pMesh aMesh);
28  pConstMesh getMesh() const;
29 
30 private:
31  PolygonMesh(void) {}
32 };
33 } // namespace OpenLxApp
A Polygon Mesh from triangles and quadrangles.
Definition: PolygonMesh.h:19
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:149
Super-class of all Geometries (aka GeometricRepresentationItems)
Definition: Geometry.h:26
#define OPENLXAPP_EXPORT
Definition: OpenLxApp_defines.h:12
Definition: ActiveScript.h:9
std::shared_ptr< Topo::MeshShape > pMesh
Definition: Shape.h:78
#define DECL_PROPERTY(_class_, _name_, _type_)
DECL_PROPERTY and DEFINE_PROPERTY are macros used for mapping between the properties of Lexocad objec...
Definition: Globals.h:245
std::shared_ptr< Topo::MeshShape const > pConstMesh
Definition: Shape.h:93
#define FORWARD_DECL(x, y)
Definition: Globals.h:96