5 #ifndef GEOMODELKERNEL_GEOSIMPLEPOLYGONBREP_H 6 #define GEOMODELKERNEL_GEOSIMPLEPOLYGONBREP_H 20 #include "GeoModelKernel/GeoShape.h" 28 virtual double volume()
const;
30 virtual const std::string& type()
const;
31 virtual ShapeType typeID()
const;
33 void addVertex(
double XVertex,
double YVertex);
34 unsigned int getNVertices()
const;
36 bool isValid ()
const;
38 const double & getXVertex(
unsigned int i)
const;
39 const double & getYVertex(
unsigned int i)
const;
43 static const std::string& getClassType();
44 static ShapeType getClassTypeID();
46 const double& getDZ()
const;
55 static const std::string s_classType;
56 static const ShapeType s_classTypeID;
59 std::vector<double> m_xVertices;
60 std::vector<double> m_yVertices;
63 inline unsigned int GeoSimplePolygonBrep::getNVertices()
const 65 return m_xVertices.size();
68 inline bool GeoSimplePolygonBrep::isValid()
const 70 return getNVertices()>=3;
73 inline const double& GeoSimplePolygonBrep::getXVertex(
unsigned int i)
const 75 return m_xVertices[i];
78 inline const double& GeoSimplePolygonBrep::getYVertex(
unsigned int i)
const 80 return m_yVertices[i];
83 inline const std::string& GeoSimplePolygonBrep::getClassType()
88 inline ShapeType GeoSimplePolygonBrep::getClassTypeID()
93 inline const double& GeoSimplePolygonBrep::getDZ()
const This shape represents a BREP solid consisting of two equivalent polygonial faces perpendicular to Z a...
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...
This class describes a Shape. Shapes will be able to do the following things: