GeoModel - GeoModelCore
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GeoSimplePolygonBrep Class Reference

This shape represents a BREP solid consisting of two equivalent polygonial faces perpendicular to Z axis. The polygones are described by array of (x,y) vertices, The solid is considered valid if the number of polygon vertices >=3. More...

#include <GeoSimplePolygonBrep.h>

Inheritance diagram for GeoSimplePolygonBrep:
GeoShape RCBase

Public Member Functions

 GeoSimplePolygonBrep (double dz)
 
virtual double volume () const
 
virtual const std::string & type () const
 
virtual ShapeType typeID () const
 
void addVertex (double XVertex, double YVertex)
 
unsigned int getNVertices () const
 
bool isValid () const
 
const double & getXVertex (unsigned int i) const
 
const double & getYVertex (unsigned int i) const
 
virtual void exec (GeoShapeAction *action) const
 
const double & getDZ () const
 
- Public Member Functions inherited from GeoShape
const GeoShapeUnion & add (const GeoShape &shape) const
 
const GeoShapeSubtraction & subtract (const GeoShape &shape) const
 
const GeoShapeIntersection & intersect (const GeoShape &shape) const
 
const GeoShapeShift & operator<< (const GeoTrf::Transform3D &shift) const
 
- Public Member Functions inherited from RCBase
void ref () const
 
void unref () const
 
unsigned int refCount () const
 

Static Public Member Functions

static const std::string & getClassType ()
 
static ShapeType getClassTypeID ()
 

Private Member Functions

 GeoSimplePolygonBrep (const GeoSimplePolygonBrep &right)
 
GeoSimplePolygonBrep & operator= (const GeoSimplePolygonBrep &right)
 

Private Attributes

double m_dZ
 
std::vector< double > m_xVertices
 
std::vector< double > m_yVertices
 

Static Private Attributes

static const std::string s_classType = "SimplePolygonBrep"
 
static const ShapeType s_classTypeID = 0x20
 

Detailed Description

This shape represents a BREP solid consisting of two equivalent polygonial faces perpendicular to Z axis. The polygones are described by array of (x,y) vertices, The solid is considered valid if the number of polygon vertices >=3.

Constructor parameter is a half length along Z axis

Definition at line 23 of file GeoSimplePolygonBrep.h.


The documentation for this class was generated from the following files: