Class xlifepp::Geometry#

class Geometry#

Inheritence diagram for xlifepp::Geometry:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "25" [label="xlifepp::Ball" tooltip="xlifepp::Ball"] "3" [label="xlifepp::CircArc" tooltip="xlifepp::CircArc"] "33" [label="xlifepp::Cone" tooltip="xlifepp::Cone"] "30" [label="xlifepp::Cube" tooltip="xlifepp::Cube"] "29" [label="xlifepp::Cuboid" tooltip="xlifepp::Cuboid"] "2" [label="xlifepp::Curve" tooltip="xlifepp::Curve"] "35" [label="xlifepp::Cylinder" tooltip="xlifepp::Cylinder"] "12" [label="xlifepp::Disk" tooltip="xlifepp::Disk"] "4" [label="xlifepp::EllArc" tooltip="xlifepp::EllArc"] "11" [label="xlifepp::Ellipse" tooltip="xlifepp::Ellipse"] "24" [label="xlifepp::Ellipsoid" tooltip="xlifepp::Ellipsoid"] "13" [label="xlifepp::EllipsoidSidePart" tooltip="xlifepp::EllipsoidSidePart"] "1" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry" fillcolor="#BFBFBF"] "27" [label="xlifepp::Hexahedron" tooltip="xlifepp::Hexahedron"] "28" [label="xlifepp::Parallelepiped" tooltip="xlifepp::Parallelepiped"] "17" [label="xlifepp::Parallelogram" tooltip="xlifepp::Parallelogram"] "5" [label="xlifepp::ParametrizedArc" tooltip="xlifepp::ParametrizedArc"] "14" [label="xlifepp::ParametrizedSurface" tooltip="xlifepp::ParametrizedSurface"] "15" [label="xlifepp::Polygon" tooltip="xlifepp::Polygon"] "26" [label="xlifepp::Polyhedron" tooltip="xlifepp::Polyhedron"] "36" [label="xlifepp::Prism" tooltip="xlifepp::Prism"] "34" [label="xlifepp::Pyramid" tooltip="xlifepp::Pyramid"] "16" [label="xlifepp::Quadrangle" tooltip="xlifepp::Quadrangle"] "18" [label="xlifepp::Rectangle" tooltip="xlifepp::Rectangle"] "38" [label="xlifepp::RevCone" tooltip="xlifepp::RevCone"] "39" [label="xlifepp::RevCylinder" tooltip="xlifepp::RevCylinder"] "37" [label="xlifepp::RevTrunk" tooltip="xlifepp::RevTrunk"] "6" [label="xlifepp::Segment" tooltip="xlifepp::Segment"] "8" [label="xlifepp::SetOfElems" tooltip="xlifepp::SetOfElems"] "9" [label="xlifepp::SetOfPoints" tooltip="xlifepp::SetOfPoints"] "7" [label="xlifepp::SplineArc" tooltip="xlifepp::SplineArc"] "21" [label="xlifepp::SplineSurface" tooltip="xlifepp::SplineSurface"] "19" [label="xlifepp::SquareGeo" tooltip="xlifepp::SquareGeo"] "10" [label="xlifepp::Surface" tooltip="xlifepp::Surface"] "31" [label="xlifepp::Tetrahedron" tooltip="xlifepp::Tetrahedron"] "20" [label="xlifepp::Triangle" tooltip="xlifepp::Triangle"] "32" [label="xlifepp::Trunk" tooltip="xlifepp::Trunk"] "22" [label="xlifepp::TrunkSidePart" tooltip="xlifepp::TrunkSidePart"] "23" [label="xlifepp::Volume" tooltip="xlifepp::Volume"] "25" -> "24" [dir=forward tooltip="public-inheritance"] "3" -> "2" [dir=forward tooltip="public-inheritance"] "33" -> "32" [dir=forward tooltip="public-inheritance"] "30" -> "29" [dir=forward tooltip="public-inheritance"] "29" -> "28" [dir=forward tooltip="public-inheritance"] "2" -> "1" [dir=forward tooltip="public-inheritance"] "35" -> "32" [dir=forward tooltip="public-inheritance"] "12" -> "11" [dir=forward tooltip="public-inheritance"] "4" -> "2" [dir=forward tooltip="public-inheritance"] "11" -> "10" [dir=forward tooltip="public-inheritance"] "24" -> "23" [dir=forward tooltip="public-inheritance"] "13" -> "10" [dir=forward tooltip="public-inheritance"] "27" -> "26" [dir=forward tooltip="public-inheritance"] "28" -> "27" [dir=forward tooltip="public-inheritance"] "17" -> "16" [dir=forward tooltip="public-inheritance"] "5" -> "2" [dir=forward tooltip="public-inheritance"] "14" -> "10" [dir=forward tooltip="public-inheritance"] "15" -> "10" [dir=forward tooltip="public-inheritance"] "26" -> "23" [dir=forward tooltip="public-inheritance"] "36" -> "35" [dir=forward tooltip="public-inheritance"] "34" -> "33" [dir=forward tooltip="public-inheritance"] "16" -> "15" [dir=forward tooltip="public-inheritance"] "18" -> "17" [dir=forward tooltip="public-inheritance"] "38" -> "37" [dir=forward tooltip="public-inheritance"] "39" -> "37" [dir=forward tooltip="public-inheritance"] "37" -> "32" [dir=forward tooltip="public-inheritance"] "6" -> "2" [dir=forward tooltip="public-inheritance"] "8" -> "1" [dir=forward tooltip="public-inheritance"] "9" -> "1" [dir=forward tooltip="public-inheritance"] "7" -> "2" [dir=forward tooltip="public-inheritance"] "21" -> "10" [dir=forward tooltip="public-inheritance"] "19" -> "18" [dir=forward tooltip="public-inheritance"] "10" -> "1" [dir=forward tooltip="public-inheritance"] "31" -> "26" [dir=forward tooltip="public-inheritance"] "20" -> "15" [dir=forward tooltip="public-inheritance"] "32" -> "23" [dir=forward tooltip="public-inheritance"] "22" -> "10" [dir=forward tooltip="public-inheritance"] "23" -> "1" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Geometry:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "20" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"] "13" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"] "17" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "28" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"] "37" [label="std::list< std::pair< number_t, real_t > >" tooltip="std::list< std::pair< number_t, real_t > >"] "9" [label="std::map< number_t, std::vector< number_t > >" tooltip="std::map< number_t, std::vector< number_t > >"] "7" [label="std::map< number_t, xlifepp::Geometry * >" tooltip="std::map< number_t, xlifepp::Geometry * >"] "36" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"] "38" [label="std::list< T >" tooltip="std::list< T >"] "8" [label="std::map< K, T >" tooltip="std::map< K, T >"] "4" [label="std::vector< T >" tooltip="std::vector< T >"] "23" [label="std::vector< T >" tooltip="std::vector< T >"] "16" [label="std::vector< K >" tooltip="std::vector< K >"] "3" [label="std::vector< RealPair >" tooltip="std::vector< RealPair >"] "19" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"] "24" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "14" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "33" [label="std::vector< std::vector< GeoNumPair > >" tooltip="std::vector< std::vector< GeoNumPair > >"] "10" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"] "21" [label="std::vector< string_t >" tooltip="std::vector< string_t >"] "32" [label="std::vector< xlifepp::GeomDomain * >" tooltip="std::vector< xlifepp::GeomDomain * >"] "31" [label="std::vector< xlifepp::GeomElement * >" tooltip="std::vector< xlifepp::GeomElement * >"] "35" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"] "6" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"] "25" [label="std::vector< xlifepp::Transformation * >" tooltip="std::vector< xlifepp::Transformation * >"] "29" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"] "2" [label="xlifepp::BoundingBox" tooltip="xlifepp::BoundingBox"] "22" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"] "11" [label="xlifepp::ExtrusionData" tooltip="xlifepp::ExtrusionData"] "39" [label="xlifepp::GeoNode" tooltip="xlifepp::GeoNode"] "1" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry" fillcolor="#BFBFBF"] "15" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"] "30" [label="xlifepp::Mesh" tooltip="xlifepp::Mesh"] "5" [label="xlifepp::MinimalBox" tooltip="xlifepp::MinimalBox"] "34" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"] "27" [label="xlifepp::Parametrization" tooltip="xlifepp::Parametrization"] "26" [label="xlifepp::Point" tooltip="xlifepp::Point"] "12" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "18" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "20" -> "21" [dir=forward tooltip="public-inheritance"] "20" -> "22" [dir=forward tooltip="template-instance"] "13" -> "14" [dir=forward tooltip="public-inheritance"] "13" -> "15" [dir=forward tooltip="template-instance"] "17" -> "14" [dir=forward tooltip="public-inheritance"] "17" -> "18" [dir=forward tooltip="template-instance"] "28" -> "29" [dir=forward tooltip="public-inheritance"] "28" -> "18" [dir=forward tooltip="template-instance"] "37" -> "38" [dir=forward tooltip="template-instance"] "9" -> "8" [dir=forward tooltip="template-instance"] "7" -> "8" [dir=forward tooltip="template-instance"] "36" -> "8" [dir=forward tooltip="template-instance"] "16" -> "4" [dir=forward tooltip="template-instance"] "3" -> "4" [dir=forward tooltip="template-instance"] "19" -> "4" [dir=forward tooltip="template-instance"] "24" -> "4" [dir=forward tooltip="template-instance"] "14" -> "4" [dir=forward tooltip="template-instance"] "33" -> "4" [dir=forward tooltip="template-instance"] "10" -> "4" [dir=forward tooltip="template-instance"] "21" -> "4" [dir=forward tooltip="template-instance"] "32" -> "4" [dir=forward tooltip="template-instance"] "31" -> "4" [dir=forward tooltip="template-instance"] "35" -> "4" [dir=forward tooltip="template-instance"] "6" -> "4" [dir=forward tooltip="template-instance"] "25" -> "4" [dir=forward tooltip="template-instance"] "29" -> "4" [dir=forward tooltip="template-instance"] "2" -> "3" [dir=forward tooltip="usage"] "22" -> "23" [dir=forward tooltip="public-inheritance"] "11" -> "12" [dir=forward tooltip="usage"] "11" -> "20" [dir=forward tooltip="usage"] "11" -> "24" [dir=forward tooltip="usage"] "11" -> "14" [dir=forward tooltip="usage"] "11" -> "17" [dir=forward tooltip="usage"] "11" -> "25" [dir=forward tooltip="usage"] "11" -> "26" [dir=forward tooltip="usage"] "39" -> "39" [dir=forward tooltip="usage"] "39" -> "1" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="usage"] "1" -> "5" [dir=forward tooltip="usage"] "1" -> "7" [dir=forward tooltip="usage"] "1" -> "9" [dir=forward tooltip="usage"] "1" -> "10" [dir=forward tooltip="usage"] "1" -> "11" [dir=forward tooltip="usage"] "1" -> "27" [dir=forward tooltip="usage"] "1" -> "1" [dir=forward tooltip="usage"] "1" -> "39" [dir=forward tooltip="usage"] "15" -> "16" [dir=forward tooltip="public-inheritance"] "30" -> "1" [dir=forward tooltip="usage"] "30" -> "6" [dir=forward tooltip="usage"] "30" -> "31" [dir=forward tooltip="usage"] "30" -> "32" [dir=forward tooltip="usage"] "30" -> "24" [dir=forward tooltip="usage"] "30" -> "33" [dir=forward tooltip="usage"] "30" -> "30" [dir=forward tooltip="usage"] "5" -> "6" [dir=forward tooltip="usage"] "34" -> "35" [dir=forward tooltip="usage"] "34" -> "36" [dir=forward tooltip="usage"] "27" -> "1" [dir=forward tooltip="usage"] "27" -> "17" [dir=forward tooltip="usage"] "27" -> "28" [dir=forward tooltip="usage"] "27" -> "30" [dir=forward tooltip="usage"] "27" -> "34" [dir=forward tooltip="usage"] "27" -> "37" [dir=forward tooltip="usage"] "26" -> "14" [dir=forward tooltip="public-inheritance"] "12" -> "13" [dir=forward tooltip="usage"] "12" -> "17" [dir=forward tooltip="usage"] "12" -> "19" [dir=forward tooltip="usage"] "18" -> "16" [dir=forward tooltip="public-inheritance"] }

handles geometric data of the physical problem

Subclassed by xlifepp::Curve, xlifepp::SetOfElems, xlifepp::SetOfPoints, xlifepp::Surface, xlifepp::Volume

Public Functions

Geometry()#

void constructor

explicit Geometry(const BoundingBox &bb, const string_t &na = "", ShapeType sh = _noShape, const string_t &nx = "x", const string_t &ny = "y", const string_t &nz = "z")#

basic constructor from bounding box

Geometry(const BoundingBox &bb, dimen_t d, const string_t &na = "", ShapeType sh = _noShape, const string_t &nx = "x", const string_t &ny = "y", const string_t &nz = "z")#

basic constructor from bounding box and dim

Geometry(const Geometry &g)#

copy constructor

explicit Geometry(const string_t &fn)#

constructor from file (only Brep up to now)

init variable names, check domName (dim_ has to be already set !!!)

explicit Geometry(dimen_t d, const string_t &na = "", ShapeType sh = _noShape, const string_t &nx = "x", const string_t &ny = "y", const string_t &nz = "z")#

basic constructor from (unit bounding box)

constructor from file (only Brep up to now)

void addSuffix(const string_t &s)#

add a suffix to all names (geometry names and side domain names) format as string

inline virtual Ball *ball()#

access to child Ball object

inline virtual const Ball *ball() const#

access to child Ball object (const)

const Parametrization &boundaryParametrization() const#

return boundary_parametrization if allocated

inline Parametrization *boundaryParametrizationP()#

return boundary prametrization pointer

virtual std::vector<const Point*> boundNodes() const#

return the list of boundary nodes defining the Geometry

bool buildC0PiecewiseParametrization() const#

try to build piecewise parametrization (for composite geometry)

build C0 piecewise parametrization of a composite geometry if not built

void buildConnectedParts() const#

build connectedParts structure

build connectedParts:

  • collect all the geometry components of same dimension that are connected

  • connected parts are sorted so that two geometries are adjacent to each other connectedParts is empty for canonical geometry

Parametrization &buildParametrization() const#

build parametrization if not built (for canonical geometry)

build parametrization of a composite geometry if not built

void buildPiecewiseParametrization() const#

build non C0 piecewise parametrization (for composite geometry)

void buildSideMaps(std::map<Geometry*, std::vector<std::set<number_t>>> &geomsides, std::map<std::set<number_t>, std::list<std::pair<Geometry*, number_t>>> &sidemap) const#

build side maps used by buildPiecewiseParametrisation functions

build non C0 piecewise parametrization (for composite geometry)

Strings buildSideNamesAfterCheck(number_t n, number_t n2 = 0) const#

check if n side names are given and complete when single or empty

We check if sideNames_ has size 0, 1, or n and return an equivalent Strings of size n n2 is an optional secondary possible size (case for some particular geometries)

void checkSideNamesAndUpdate(number_t n, number_t n2 = 0)#

check if n side names are given and update size when single or empty

We check if sideNames_ has size 0, 1, or n and update it with size n n2 is an optional secondary possible size (case for some particular geometries)

inline virtual CircArc *circArc()#

access to child CircArc object

inline virtual const CircArc *circArc() const#

access to child CircArc object (const)

void cleanInclusions()#

clean geometries_ so that inclusions are not included by other ones in the list

void clearCompositeData()#

clear components_, geometries_, loops_ and connectedParts_ data

void clearExtrusionData()#

clear extrusionData_

void clearParametrization()#

reset parametrization pointers

inline virtual Geometry *clone() const#

virtual copy constructor

virtual void collect(const string_t &n, std::list<Geometry*> &geoms) const#

collect in a list all canonical geometry’s with name n

inline std::map<number_t, Geometry*> &components()#

accessor to components_

inline const std::map<number_t, Geometry*> &components() const#

accessor to components_ (const)

void computeBB()#

compute the bounding box for a composite/loop geometry

inline virtual void computeMB()#

compute the minimal box for a composite/loop geometry

compute the minimal box

inline virtual Cone *cone()#

access to child Cone object

inline virtual const Cone *cone() const#

access to child Cone object (const)

inline const std::vector<std::vector<int_t>> &connectedParts() const#

accessor to connectedParts_ (const)

Geometry &crack(CrackType ct, string_t domNameToOpen)#

force geometry to crack

inline virtual Cube *cube()#

access to child Cube object

inline virtual const Cube *cube() const#

access to child Cube object (const)

inline virtual Cuboid *cuboid()#

access to child Cuboid object

inline virtual const Cuboid *cuboid() const#

access to child Cuboid object (const)

inline virtual Curve *curve()#

access to child Curve object (non const)

inline virtual const Curve *curve() const#

access to child Curve object (const)

virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> curves() const#

return the list of curves defining the borders of a 2D Geometry

inline virtual Cylinder *cylinder()#

access to child Cylinder object

inline virtual const Cylinder *cylinder() const#

access to child Cylinder object (const)

inline dimen_t dim() const#

returns the physical space dimension

inline void dim(dimen_t d)#

sets the physical space dimension

dimen_t dimPoint() const#

dimension of points, may differ from dimension of the geometry

inline virtual Disk *disk()#

access to child Disk object

inline virtual const Disk *disk() const#

access to child Disk object (const)

inline string_t &domName()#

get the domain name (writable)

inline const string_t &domName() const#

get the domain name

inline void domName(const string_t &nm)#

set the domain name

inline virtual EllArc *ellArc()#

access to child EllArc object

inline virtual const EllArc *ellArc() const#

access to child EllArc object (const)

inline virtual Ellipse *ellipse()#

access to child Ellipse object

inline virtual const Ellipse *ellipse() const#

access to child Ellipse object (const)

inline virtual Ellipsoid *ellipsoid()#

access to child Ellipsoid object

inline virtual const Ellipsoid *ellipsoid() const#

access to child Ellipsoid object (const)

inline virtual EllipsoidSidePart *ellipsoidSidePart()#

access to child Pyramid object

inline virtual const EllipsoidSidePart *ellipsoidSidePart() const#

access to child EllipsoidSidePart object (const)

inline ExtrusionData *extrusionData()#

return the data for extruded geometry

inline const ExtrusionData *extrusionData() const#

return the data for extruded geometry (const)

Geometry *find(const string_t &n) const#

return geometry with name n (a canonical geometry or a composite of canonical geometry’s)

virtual Point firstNode() const#

return a node belonging to the Geometry (const)

inline std::map<number_t, std::vector<number_t>> &geometries()#

accessor to geometries_ (const)

inline const std::map<number_t, std::vector<number_t>> &geometries() const#

accessor to geometries_ (const)

inline virtual const std::vector<real_t> &h() const#

return the hsteps of the geometry

inline virtual Hexahedron *hexahedron()#

access to child Hexahedron object

inline virtual const Hexahedron *hexahedron() const#

access to child Hexahedron object (const)

inline virtual Geometry &homothetize(const Parameter &p1)#

apply a homothety on a Geometry (1 key)

inline virtual Geometry &homothetize(const Parameter &p1, const Parameter &p2)#

apply a homothety on a Geometry (2 keys)

inline virtual Geometry &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#

apply a homothety on a Geometry

inline virtual Geometry &homothetize(real_t factor)#

apply a homothety on a Geometry

void init(const string_t &nx = "x", const string_t &ny = "y", const string_t &nz = "z")#

intialize OCData, varNames and check domName

init variable names, check domName, set oc pointer null (dim_ has to be already set)

void initName(const string_t &nx = "x", const string_t &ny = "y", const string_t &nz = "z")#

intialize varNames and check domName

inline virtual bool isClosed() const#

return true if closed geometry

bool isCoplanar(const Geometry &g) const#

check if geometry is coplanar with another geometry (g)

bool isInside(const Geometry &g) const#

check if geometry is inside another geometry (g) build a geometric geodesic starting at (x,dx)

inline virtual bool isPlane() const#

return true if geometry is plane

inline virtual bool isTranslated(const Geometry &g, Point &T) const#

return true if there is a translation between current geometry and an other one, T is the translation vector

virtual number_t lastNodeIndex() const#

return the last node index

inline const std::map<number_t, std::vector<number_t>> &loops() const#

accessor to loops_ (const)

inline virtual real_t measure() const#

return the length/area/volume of the geometry

inline virtual const std::vector<number_t> &n() const#

return the nnodes of the geometry

inline virtual number_t n(number_t i) const#

accessor to number of nodes on the Geometry (read only)

number_t nbLateralSidesForExtrusion() const#

return the number of sides of the geometry

inline number_t nbParts() const#

accessor to nbParts_ (const)

virtual number_t nbSides() const#

return the number of sides of the geometry

inline virtual std::vector<int_t> nnodesPerBorder()#

i-th value is nnodes of the Geometry’s i-th border, else -1 if defined with hsteps

virtual std::vector<Point*> nodes()#

return the list of nodes defining the Geometry

virtual std::vector<const Point*> nodes() const#

return the list of nodes defining the Geometry (const)

inline void ocTransform(const Transformation &t)#

< apply a Transformation to OC oject if available (binding ocTransformP to avoid spoiling a lot of functions with OC macro)

Geometry &operator!()#

force behavior in union of geometries

Geometry &operator+()#

force behavior in union of geometries

Geometry &operator+=(const Geometry &g)#

union of g1 and g2 (general case)

Geometry &operator-()#

disable force behavior in union of geometries

Geometry &operator-=(const Geometry &g)#

definition of a hole (general case)

Geometry &operator=(const Geometry &g)#

assign operator

assign operator = (deep copy)

bool operator==(const Geometry &g) const#

comparison operator

inline virtual Parallelepiped *parallelepiped()#

access to child Parallelepiped object

inline virtual const Parallelepiped *parallelepiped() const#

access to child Parallelepiped object (const)

inline virtual Parallelogram *parallelogram()#

access to child Parallelogram object

inline virtual const Parallelogram *parallelogram() const#

access to child Parallelogram object (const)

const Parametrization &parametrization() const#

return parametrization if allocated

inline Parametrization *parametrizationP()#

return parametrization pointer

inline virtual ParametrizedArc *parametrizedArc()#

access to child CircArc object

inline virtual const ParametrizedArc *parametrizedArc() const#

access to child CircArc object (const)

inline virtual ParametrizedSurface *parametrizedSurface()#

access to child ParametrizedSurface object

inline virtual const ParametrizedSurface *parametrizedSurface() const#

access to child ParametrizedSurface object (const)

inline virtual Geometry &pointReflect(const Parameter &p1)#

apply a point reflection on a Geometry (1 key)

inline virtual Geometry &pointReflect(const Point &c = Point(0., 0., 0.))#

apply a point reflection on a Geometry

inline virtual Polygon *polygon()#

access to child Polygon object

inline virtual const Polygon *polygon() const#

access to child Polygon object (const)

inline virtual Polyhedron *polyhedron()#

access to child Polyhedron object

inline virtual const Polyhedron *polyhedron() const#

access to child Polyhedron object (const)

void print(std::ostream &os) const#

print Geometry

void printBoundNodes(std::ostream &os) const#

print Geometry boundNodes() vector

void printCurves(std::ostream &os) const#

print Geometry curves() vector

inline virtual void printDetail(std::ostream &os) const#

print additional information

void printNodes(std::ostream &os) const#

print Geometry nodes() vector

void printSurfs(std::ostream &os) const#

print Geometry surfs() vector

inline virtual Prism *prism()#

access to child Prism object

inline virtual const Prism *prism() const#

access to child Prism object (const)

inline virtual Pyramid *pyramid()#

access to child Pyramid object

inline virtual const Pyramid *pyramid() const#

access to child Pyramid object (const)

inline virtual Quadrangle *quadrangle()#

access to child Quadrangle object

inline virtual const Quadrangle *quadrangle() const#

access to child Quadrangle object (const)

inline virtual Rectangle *rectangle()#

access to child Rectangle object

inline virtual const Rectangle *rectangle() const#

access to child Rectangle object (const)

inline virtual Geometry &reflect2d(const Parameter &p1)#

apply a reflection2d on a Geometry (1 key)

inline virtual Geometry &reflect2d(const Parameter &p1, const Parameter &p2)#

apply a reflection2d on a Geometry (2 keys)

inline virtual Geometry &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#

apply a reflection2d on a Geometry

inline virtual Geometry &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#

apply a reflection2d on a Geometry

inline virtual Geometry &reflect3d(const Parameter &p1)#

apply a reflection3d on a Geometry (1 key)

inline virtual Geometry &reflect3d(const Parameter &p1, const Parameter &p2)#

apply a reflection3d on a Geometry (2 keys)

inline virtual Geometry &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#

apply a reflection3d on a Geometry

inline virtual Geometry &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#

apply a reflection3d on a Geometry

inline virtual RevCone *revCone()#

access to child RevCone object

inline virtual const RevCone *revCone() const#

access to child RevCone object (const)

inline virtual RevCylinder *revCylinder()#

access to child RevCylinder object

inline virtual const RevCylinder *revCylinder() const#

access to child RevCylinder object (const)

inline virtual RevTrunk *revTrunk()#

access to child RevTrunk object

inline virtual const RevTrunk *revTrunk() const#

access to child RevTrunk object (const)

inline virtual Geometry &rotate2d(const Parameter &p1)#

apply a rotation 2D on a Geometry (1 key)

inline virtual Geometry &rotate2d(const Parameter &p1, const Parameter &p2)#

apply a rotation 2D on a Geometry (2 keys)

inline virtual Geometry &rotate2d(const Point &c, real_t angle = 0.)#

apply a rotation 2D on a Geometry

inline virtual Geometry &rotate3d(const Parameter &p1)#

apply a rotation 3D on a Geometry (1 key)

inline virtual Geometry &rotate3d(const Parameter &p1, const Parameter &p2)#

apply a rotation 3D on a Geometry (2 keys)

inline virtual Geometry &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#

apply a rotation 3D on a Geometry (3 keys)

inline virtual Geometry &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#

apply a rotation on a Geometry

inline virtual Geometry &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation on a Geometry

inline virtual Geometry &rotate3d(const Point &c, std::vector<real_t> d = std::vector<real_t>(3, 0.), real_t angle = 0.)#

apply a rotation 3D on a Geometry

inline virtual Geometry &rotate3d(real_t dx, real_t dy, real_t angle)#

apply a rotation 3D on a Geometry

inline virtual Geometry &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation 3D on a Geometry

inline virtual Segment *segment()#

access to child Segment object

inline virtual const Segment *segment() const#

access to child Segment object (const)

void setBoundaryParametrization(const Parametrization &par)#

set boundary_parametrization

inline virtual void setHstep(real_t h)#

set the main h step, if not overriden do nothing

inline virtual void setNnodes(number_t i)#

set the main nnodes, if not overriden do nothing

inline virtual SetOfElems *setofelems()#

access to child SetOfElems object

inline virtual const SetOfElems *setofelems() const#

access to child SetOfElems object (const)

inline virtual SetOfPoints *setofpoints()#

access to child SetOfPoints object

inline virtual const SetOfPoints *setofpoints() const#

access to child SetOfPoints object (const)

void setParametrization(const Parametrization &par)#

set parametrization

inline ShapeType shape() const#

returns the geometrical shape

inline void shape(ShapeType sh)#

sets the geometrical shape

inline std::vector<string_t> &sideNames()#

returns the list of side domains’ names

inline const std::vector<string_t> &sideNames() const#

returns the list of side domains’ names

inline virtual SplineArc *splineArc()#

access to child CircArc object

inline virtual const SplineArc *splineArc() const#

access to child CircArc object (const)

inline virtual SplineSurface *splineSurface()#

access to child SplineSurface object

inline virtual const SplineSurface *splineSurface() const#

access to child SplineSurface object (const)

inline virtual SquareGeo *square()#

access to child SquareGeo object

inline virtual const SquareGeo *square() const#

access to child SquareGeo object (const)

inline virtual Surface *surface()#

access to child Surface object (non const)

inline virtual const Surface *surface() const#

access to child Surface object (const)

virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> surfs() const#

return the list of surfaces defining the borders of a 3D Geometry

inline virtual Tetrahedron *tetrahedron()#

access to child Tetrahedron object

inline virtual const Tetrahedron *tetrahedron() const#

access to child tetrahedron object (const)

inline const string_t &teXFilename() const#

returns tex file name

inline void teXFilename(const string_t &fn)#

set filename to get a TeX output (drawing of the mesh)

virtual Geometry &transform(const Transformation &t)#

apply a geometrical transformation on a Geometry

inline virtual Geometry &translate(const Parameter &p1)#

apply a translation on a Geometry (1 key)

inline virtual Geometry &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#

apply a translation on a Geometry (3 reals version)

inline virtual Geometry &translate(std::vector<real_t> u)#

apply a translation on a Geometry (vector version)

inline virtual Triangle *triangle()#

access to child Triangle object

inline virtual const Triangle *triangle() const#

access to child Triangle object (const)

inline virtual Trunk *trunk()#

access to child Trunk object

inline virtual const Trunk *trunk() const#

access to child Trunk object (const)

inline virtual TrunkSidePart *trunkSidePart()#

access to child Pyramid object

inline virtual const TrunkSidePart *trunkSidePart() const#

access to child EllipsoidSidePart object (const)

Geometry &uncrack()#

disable geometry to crack

inline void updateBB(const std::vector<RealPair> &bb)#

update the bounding box

inline virtual Volume *volume()#

access to child Volume object (non const)

inline virtual const Volume *volume() const#

access to child Volume object (const)

inline virtual bool withNnodes() const#

check if geometry is defined only with _nnodes or with _hsteps option

Public Members

BoundingBox boundingBox#

the bounding box

mutable bool crackable#

tag to define if the geometry should be cracked or not

mutable string_t crackDomNameToOpen#

when open crack, name to the side domain to open.

mutable CrackType crackType#

type of crack (open or closed)

mutable bool force#

tag to force inclusion when geometry engines fails

GeoNode *geoNode_#

GeoNode pointer to handle tree representation of non canonical geometries.

bool isPlaneSurface#

used only for 2D loop geometries

MinimalBox minimalBox#

the smallest box containing the geometry

Public Static Attributes

static bool checkInclusion = true#

to manage inclusion checking in composite algorithms

Friends

friend Geometry extrude(const Geometry &g, const Transformation &t, const std::vector<Parameter> &ps)#

main routine for the definition of a geometry by extrusion of another geometry, with a list if parameters

main external routine for the definition of a geometry by extrusion of another geometry, with a list if parameters

friend Geometry extrude(const Geometry &g, const Transformation &t, number_t layers, std::vector<string_t> sidenames)#

definition of a geometry by extrusion of another geometry, with side names

friend Geometry extrude(const Geometry &g, const Transformation &t, number_t layers, string_t domName, std::vector<string_t> sidenames)#

definition of a geometry by extrusion of another geometry, with name and side names

friend Geometry extrude(const Geometry &g, const Transformation &t, std::vector<string_t> sidenames)#

definition of a geometry by extrusion of another geometry, with side names

friend Geometry extrude(const Geometry &g, const Transformation &t, string_t domName, std::vector<string_t> sidenames)#

definition of a geometry by extrusion of another geometry, with name and side names

friend Geometry operator+(const Geometry &g1, const Geometry &g2)#

union of g1 and g2 (general case)

friend Geometry operator-(const Geometry &g1, const Geometry &g2)#

g2 hole of g1 (general case)

friend std::ostream &operator<<(std::ostream &os, const Geometry &g)#

output Geometry

friend Geometry planeSurfaceFrom(const Geometry &c, string_t domName)#

definition of a geometry 2D from an union of boundaries 1D

friend Geometry ruledSurfaceFrom(const Geometry &c, string_t domName)#

definition of a geometry 2D from an union of boundaries 1D

friend Geometry surfaceFrom(const Geometry &c, string_t domName, bool isPlaneSurface)#

definition of a geometry 2D from its boundary 1D

definition of a geometry 2D from an union of boundaries 1D

friend Geometry toComposite(const Geometry &g)#

conversion of a canonical or loop Geometry into a composite geometry with one component

return a composite geometry with only one component: g

  • if g is canonical, the components_ vector contains only g

  • if g is loop, the components_ vector contains every border of g and g itself

  • if g is composite, it does nothing

this function is necessary when initializing composite Geometry before using += and -= operators

friend Geometry volumeFrom(const Geometry &s, string_t domName)#

definition of a geometry 3D from its boundary 2D

definition of a geometry 3D from an union of boundaries 2D