|
OOFEM 3.0
|
#include <geometry.h>
Public Member Functions | |
| Line () | |
| virtual | ~Line () |
| Line (const FloatArray &iPointA, const FloatArray &iPointB) | |
| BasicGeometry * | Clone () override |
| double | computeDistanceTo (const FloatArray &point) override |
| Computes normal signed distance between this object and a point. | |
| void | computeNormalSignDist (double &oDist, const FloatArray &iPoint) const override |
| Computes tangential distance to a point. | |
| double | computeTangentialDistanceToEnd (const FloatArray &point) |
| void | computeTangentialSignDist (double &oDist, const FloatArray &iPoint, double &oMinDistArcPos) const override |
| void | computeProjection (FloatArray &answer) |
| int | computeNumberOfIntersectionPoints (Element *element) override |
| Gives number of intersection points of Geometry entity with an element, Element reference will be later replaced by Geometry. | |
| void | computeIntersectionPoints (Element *element, std ::vector< FloatArray > &oIntersectionPoints) override |
| Gives intersection points between this Geometry and Element. | |
| double | computeInclinationAngle () |
| void | computeTransformationMatrix (FloatMatrix &answer) |
| void | transformIntoPolar (FloatArray *point, FloatArray &answer) |
| void | initializeFrom (InputRecord &ir) override |
| Initializes the Geometry from the InputRecord. | |
| bool | isPointInside (FloatArray *point) |
| bool | intersects (Element *element) override |
| Checks whether an element is interacted, Element reference will be later replaced by Geometry. | |
| bool | isOutside (BasicGeometry *bg) override |
| double | giveLength () const |
| Public Member Functions inherited from oofem::BasicGeometry | |
| BasicGeometry () | |
| Constructor. | |
| BasicGeometry (const BasicGeometry &iBasicGeometry) | |
| Copy constructor: should be implemented when a class deals with pointers. | |
| virtual | ~BasicGeometry () |
| Destructor. | |
| virtual void | printVTK (int iTStepIndex, int iIndex) |
| virtual void | computeLocalCoordinates (FloatArray &oLocCoord, const FloatArray &iPoint) const |
| virtual void | giveSubPolygon (std ::vector< FloatArray > &oPoints, const double &iXiStart, const double &iXiEnd) const |
| virtual void | giveGlobalCoordinates (FloatArray &oGlobalCoord, const double &iArcPos) const |
| virtual void | giveTangent (FloatArray &oTangent, const double &iArcPosition) const |
| Computes tangential direction at given local coordinate (arcPos). | |
| const FloatArray & | giveVertex (int n) const |
| void | setVertices (const std::vector< FloatArray > &iVertices) |
| void | removeDuplicatePoints (const double &iTolSquare) |
| void | insertVertexFront (const FloatArray &iP) |
| void | insertVertexBack (const FloatArray &iP) |
| void | clear () |
| void | translate (const FloatArray &iTrans) |
| virtual void | giveInputRecord (DynamicInputRecord &input) |
| virtual const char * | giveClassName () const |
| Gives class name. | |
| std::string | errorInfo (const char *func) const |
| int | giveNrVertices () const |
| Returns number of Geometry vertices. | |
| virtual bool | isInside (Element *el) |
| virtual bool | isInside (const FloatArray &point) |
| virtual void | printYourself () |
| virtual void | saveContext (DataStream &stream, ContextMode mode) |
| virtual void | restoreContext (DataStream &stream, ContextMode mode) |
| virtual void | draw (oofegGraphicContext &gc) |
| virtual bool | giveTips (TipInfo &oStartTipInfo, TipInfo &oEndTipInfo) const |
| virtual void | giveBoundingSphere (FloatArray &oCenter, double &oRadius) |
Additional Inherited Members | |
| Static Public Member Functions inherited from oofem::BasicGeometry | |
| static double | computeLineDistance (const FloatArray &iP1, const FloatArray &iP2, const FloatArray &iQ1, const FloatArray &iQ2) |
| Protected Attributes inherited from oofem::BasicGeometry | |
| std ::vector< FloatArray > | mVertices |
| List of geometry vertices. | |
Definition at line 185 of file geometry.h.
|
inline |
Definition at line 188 of file geometry.h.
References oofem::BasicGeometry::BasicGeometry().
Referenced by Clone().
|
inlinevirtual |
Definition at line 189 of file geometry.h.
| oofem::Line::Line | ( | const FloatArray & | iPointA, |
| const FloatArray & | iPointB ) |
Definition at line 223 of file geometry.C.
References oofem::BasicGeometry::BasicGeometry(), and oofem::BasicGeometry::mVertices.
|
inlineoverridevirtual |
Implements oofem::BasicGeometry.
Definition at line 192 of file geometry.h.
References oofem::BasicGeometry::BasicGeometry(), and Line().
|
overridevirtual |
Computes normal signed distance between this object and a point.
Reimplemented from oofem::BasicGeometry.
Definition at line 229 of file geometry.C.
References oofem::FloatArray::at(), oofem::distance(), and oofem::BasicGeometry::mVertices.
Referenced by computeIntersectionPoints(), and isOutside().
| double oofem::Line::computeInclinationAngle | ( | ) |
Definition at line 325 of file geometry.C.
References oofem::FloatArray::at(), and oofem::BasicGeometry::mVertices.
Referenced by computeTransformationMatrix().
|
overridevirtual |
Gives intersection points between this Geometry and Element.
Reimplemented from oofem::BasicGeometry.
Definition at line 295 of file geometry.C.
References oofem::FloatArray::at(), computeDistanceTo(), computeTangentialDistanceToEnd(), oofem::DofManager::giveCoordinate(), oofem::DofManager::giveCoordinates(), oofem::Element::giveDofManager(), oofem::Element::giveNumberOfDofManagers(), and oofem::FloatArray::giveSize().
|
inlineoverridevirtual |
Computes tangential distance to a point.
Implements oofem::BasicGeometry.
Definition at line 197 of file geometry.h.
References OOFEM_ERROR.
|
overridevirtual |
Gives number of intersection points of Geometry entity with an element, Element reference will be later replaced by Geometry.
Reimplemented from oofem::BasicGeometry.
Definition at line 264 of file geometry.C.
References oofem::IntArray::at(), oofem::FEInterpolation::boundaryGiveNodes(), oofem::XfemTolerances::giveCharacteristicElementLength(), oofem::DofManager::giveCoordinates(), oofem::Element::giveGeometryType(), oofem::Element::giveInterpolation(), giveLength(), oofem::Element::giveNode(), oofem::FEInterpolation::giveNumberOfEdges(), oofem::BasicGeometry::mVertices, and oofem::FloatArray::resizeWithValues().
Referenced by intersects().
| void oofem::Line::computeProjection | ( | FloatArray & | answer | ) |
Definition at line 241 of file geometry.C.
References oofem::FloatArray::beDifferenceOf(), and oofem::BasicGeometry::mVertices.
Referenced by computeTangentialDistanceToEnd().
| double oofem::Line::computeTangentialDistanceToEnd | ( | const FloatArray & | point | ) |
Definition at line 246 of file geometry.C.
References oofem::FloatArray::beDifferenceOf(), oofem::FloatArray::computeNorm(), computeProjection(), oofem::FloatArray::dotProduct(), and oofem::BasicGeometry::mVertices.
Referenced by computeIntersectionPoints().
|
overridevirtual |
Implements oofem::BasicGeometry.
Definition at line 255 of file geometry.C.
References oofem::PolygonLine::computeTangentialSignDist(), oofem::BasicGeometry::insertVertexBack(), and oofem::BasicGeometry::mVertices.
| void oofem::Line::computeTransformationMatrix | ( | FloatMatrix & | answer | ) |
Definition at line 334 of file geometry.C.
References oofem::FloatMatrix::at(), computeInclinationAngle(), and oofem::FloatMatrix::resize().
Referenced by transformIntoPolar().
|
inline |
Definition at line 214 of file geometry.h.
References oofem::distance(), and oofem::BasicGeometry::mVertices.
Referenced by computeNumberOfIntersectionPoints().
|
overridevirtual |
Initializes the Geometry from the InputRecord.
Reimplemented from oofem::BasicGeometry.
Definition at line 357 of file geometry.C.
References _IFT_Line_end, _IFT_Line_start, IR_GIVE_FIELD, and oofem::BasicGeometry::mVertices.
|
overridevirtual |
Checks whether an element is interacted, Element reference will be later replaced by Geometry.
Reimplemented from oofem::BasicGeometry.
Definition at line 217 of file geometry.C.
References computeNumberOfIntersectionPoints().
|
overridevirtual |
Reimplemented from oofem::BasicGeometry.
Definition at line 391 of file geometry.C.
References oofem::BasicGeometry::BasicGeometry(), computeDistanceTo(), oofem::BasicGeometry::giveNrVertices(), and oofem::BasicGeometry::giveVertex().
| bool oofem::Line::isPointInside | ( | FloatArray * | point | ) |
Definition at line 364 of file geometry.C.
References oofem::FloatArray::at(), and oofem::BasicGeometry::mVertices.
Referenced by oofem::Circle::computeIntersectionPoints().
| void oofem::Line::transformIntoPolar | ( | FloatArray * | point, |
| FloatArray & | answer ) |
Definition at line 344 of file geometry.C.
References oofem::FloatArray::at(), oofem::FloatArray::beDifferenceOf(), oofem::FloatArray::beProductOf(), oofem::FloatArray::computeNorm(), computeTransformationMatrix(), oofem::BasicGeometry::mVertices, and oofem::FloatArray::resize().