myInverseElements.Clear();
}
-bool SMDS_MeshNode::emptyInverseElements()
-{
- return myInverseElements.IsEmpty() != Standard_False;
-}
-
//================================================================================
/*!
* \brief Count inverse elements of given type
public:
SMDS_MeshNode(double x, double y, double z);
- void Print(std::ostream & OS) const;
+
double X() const;
double Y() const;
double Z() const;
+ void setXYZ(double x, double y, double z);
+
void AddInverseElement(const SMDS_MeshElement * ME);
void RemoveInverseElement(const SMDS_MeshElement * parent);
void ClearInverseElements();
- bool emptyInverseElements();
SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const;
int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const;
+
void SetPosition(const SMDS_PositionPtr& aPos);
const SMDS_PositionPtr& GetPosition() const;
+
SMDSAbs_ElementType GetType() const;
SMDSAbs_EntityType GetEntityType() const {return SMDSEntity_Node;}
- int NbNodes() const;
- void setXYZ(double x, double y, double z);
+
friend bool operator<(const SMDS_MeshNode& e1, const SMDS_MeshNode& e2);
+ void Print(std::ostream & OS) const;
/*!
* \brief Return node by its index
* \retval const SMDS_MeshNode* - the node
*/
virtual const SMDS_MeshNode* GetNode(const int) const { return this; }
+ virtual int NbNodes() const;
protected:
SMDS_ElemIteratorPtr