5 #include "GeoModelKernel/GeoTessellatedSolid.h" 6 #include "GeoModelKernel/GeoShapeAction.h" 8 const std::string GeoTessellatedSolid::s_classType =
"TessellatedSolid";
9 const ShapeType GeoTessellatedSolid::s_classTypeID = 0x21;
11 GeoTessellatedSolid::GeoTessellatedSolid()
17 for(
size_t i=0; i<m_facets.size(); ++i)
21 double GeoTessellatedSolid::volume()
const 27 const std::string& GeoTessellatedSolid::type()
const 32 ShapeType GeoTessellatedSolid::typeID()
const 39 action->handleTessellatedSolid(
this);
42 void GeoTessellatedSolid::addFacet(
GeoFacet* facet)
45 m_facets.push_back(facet);
48 GeoFacet* GeoTessellatedSolid::getFacet(
size_t index)
const 50 return (index<m_facets.size() ? m_facets[index] : 0);
53 size_t GeoTessellatedSolid::getNumberOfFacets()
const 55 return m_facets.size();
Base class for GeoModel Facets Two implementations exist:
virtual ~GeoTessellatedSolid()
True if the polygon has at least two facets. False otherwise.
This class is a visitor for shapes. It allows a navigation of the boolean expression tree for shapes...