]> SALOME platform Git repositories - modules/smesh.git/commit
Salome HOME
Make TNodeXYZ public, which together with SMDS_StdIterator allows getting coordinates...
authoreap <eap@opencascade.com>
Tue, 9 Feb 2010 11:13:23 +0000 (11:13 +0000)
committereap <eap@opencascade.com>
Tue, 9 Feb 2010 11:13:23 +0000 (11:13 +0000)
commit2536cb0c1b75b8dccd92daf4d98323761c4d917a
tree7d41ad2ef4b0970a74f96e8140ef8d1598d03c46
parentc8050ec0d5df002543f0bc82f85d1fa7f085ffcd
Make TNodeXYZ public, which together with SMDS_StdIterator allows getting coordinates of all nodes of mesh element in a couple of lines of code:

  typedef SMDS_StdIterator< SMESH_MeshEditor::TNodeXYZ, SMDS_ElemIteratorPtr > TXyzIterator;
  vector<gp_Pnt> coords( TXyzIterator( elem->nodesIterator()), TXyzIterator() );

class SMESH_EXPORT SMESH_MeshEditor
{
public:
+  //------------------------------------------
+  /*!
+   * \brief SMDS_MeshNode -> gp_XYZ convertor
+   */
+  //------------------------------------------
+  struct TNodeXYZ : public gp_XYZ
src/SMESH/SMESH_MeshEditor.cxx
src/SMESH/SMESH_MeshEditor.hxx