]> SALOME platform Git repositories - modules/smesh.git/log
Salome HOME
modules/smesh.git
14 years agoMove StdMeshers_ProjectionUtils::IsSubShape() to SMESH_MesherHelper
eap [Tue, 23 Mar 2010 14:33:16 +0000 (14:33 +0000)]
Move StdMeshers_ProjectionUtils::IsSubShape() to SMESH_MesherHelper

14 years agoMove from StdMeshers_ProjectionUtils
eap [Tue, 23 Mar 2010 14:32:26 +0000 (14:32 +0000)]
Move from StdMeshers_ProjectionUtils

+  static bool IsSubShape( const TopoDS_Shape& shape, const TopoDS_Shape& mainShape );
+
+  static bool IsSubShape( const TopoDS_Shape& shape, SMESH_Mesh* aMesh );

14 years ago020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computa...
eap [Tue, 23 Mar 2010 08:04:58 +0000 (08:04 +0000)]
020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computation to fail with netgen
 * Cash GeomAPI_ProjectPointOnSurf's
 * Make applyFunc() public under name applyIn2D()

+   * \brief Define a pointer to wrapper over a function of gp_XY class,
+   *       suitable to pass as xyFunPtr to applyIn2D().
+   *       For exaple gp_XY_FunPtr(Added) defines pointer gp_XY_Added to function
+   *       calling gp_XY::Added(gp_XY), which is to be used like following
+   *       applyIn2D(surf, uv1, uv2, gp_XY_Added)
+   */
+#define gp_XY_FunPtr(meth) \
+  static gp_XY __gpXY_##meth (const gp_XY& uv1, const gp_XY& uv2) { return uv1.meth( uv2 ); } \
+  static xyFunPtr gp_XY_##meth = & __gpXY_##meth

+  /*!
+   * \brief Perform given operation on two 2d points in parameric space of given surface.
+   *        It takes into account period of the surface. Use gp_XY_FunPtr macro
+   *        to easily define pointer to function of gp_XY class.
+   */
+  static gp_XY applyIn2D(const Handle(Geom_Surface)& surface,
+                         const gp_XY&                uv1,
+                         const gp_XY&                uv2,
+                         xyFunPtr                    fun,
+                         const bool                  resultInPeriod=true);
+

14 years agoIssue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached...
vsr [Mon, 22 Mar 2010 15:15:49 +0000 (15:15 +0000)]
Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file

14 years agoIssue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached...
vsr [Mon, 22 Mar 2010 15:08:53 +0000 (15:08 +0000)]
Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file

14 years ago0020799: [CEA] Smesh script fails
dmv [Mon, 22 Mar 2010 14:48:33 +0000 (14:48 +0000)]
0020799: [CEA] Smesh script fails

14 years ago0020801: EDF 1343 SMESH : Segmentation violation during compound od Mesh with 0D...
vsr [Mon, 22 Mar 2010 14:30:36 +0000 (14:30 +0000)]
0020801: EDF 1343 SMESH : Segmentation violation during compound od Mesh with 0D elements

14 years ago0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED...
dmv [Mon, 22 Mar 2010 12:17:15 +0000 (12:17 +0000)]
0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file

14 years agoSMESH_IDSource can be not-published object
eap [Fri, 19 Mar 2010 14:56:03 +0000 (14:56 +0000)]
SMESH_IDSource can be not-published object

+    operator<<(SMESH::SMESH_IDSource_ptr theArg);

14 years ago0020771: EDF 1322 SMESH : Quadratic/Linear conversion with Medium Nodes on Geometry...
eap [Fri, 19 Mar 2010 14:21:48 +0000 (14:21 +0000)]
0020771: EDF 1322 SMESH : Quadratic/Linear conversion with Medium Nodes on Geometry issue
   * Care of period when performing operations on points in parametric space

14 years ago0020781: EDF 1326 SMESH : Documentation missing
eap [Fri, 19 Mar 2010 07:25:55 +0000 (07:25 +0000)]
0020781: EDF 1326 SMESH : Documentation missing
   more detail for "Orientation of faces"

14 years ago0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh comput...
eap [Thu, 18 Mar 2010 09:47:58 +0000 (09:47 +0000)]
0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computation to fail with netgen

* fix pb of CheckNodeUV() with INTERNAL shapes

+  /*!
+   * \brief Return iterator on ancestors of the given type
+   */
+  static PShapeIteratorPtr GetAncestors(const TopoDS_Shape& shape,
+                                        const SMESH_Mesh&   mesh,
+                                        TopAbs_ShapeEnum    ancestorType);

14 years ago0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh comput...
eap [Thu, 18 Mar 2010 09:46:14 +0000 (09:46 +0000)]
0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computation to fail with netgen

-  TopoDS_Shape GetSubShape() const  { return myShape; }
+  const TopoDS_Shape& GetSubShape() const  { return myShape; }

+typedef SMDS_Iterator<const TopoDS_Shape*>  PShapeIterator;
+typedef boost::shared_ptr< PShapeIterator > PShapeIteratorPtr;

+  /*!
+   * \brief Return iterator on ancestors of the given type
+   */
+  static PShapeIteratorPtr GetAncestors(const TopoDS_Shape& shape,
+                                        const SMESH_Mesh&   mesh,
+                                        TopAbs_ShapeEnum    ancestorType);

14 years ago0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh comput...
eap [Thu, 18 Mar 2010 09:42:08 +0000 (09:42 +0000)]
0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computation to fail with netgen
* In GetOrderedEdges(), preview presence of the internal vertex within the face

14 years agoIPAL21631 Incorrect Help link.
dmv [Wed, 17 Mar 2010 07:52:51 +0000 (07:52 +0000)]
IPAL21631 Incorrect Help link.

14 years agoWindows compatibility
ana [Tue, 16 Mar 2010 13:04:00 +0000 (13:04 +0000)]
Windows compatibility

14 years agoWindows compatibility
ana [Mon, 15 Mar 2010 14:45:59 +0000 (14:45 +0000)]
Windows compatibility

14 years ago0020727: EDF 1276 SMESH : add a Method RadialQuadrangle to the Mesh class in smeshDC.py
dmv [Mon, 15 Mar 2010 13:56:52 +0000 (13:56 +0000)]
0020727: EDF 1276 SMESH : add a Method RadialQuadrangle to the Mesh class in smeshDC.py

14 years agoFix compilation problem on Debian Sarge
vsr [Mon, 15 Mar 2010 09:31:54 +0000 (09:31 +0000)]
Fix compilation problem on Debian Sarge

14 years ago+//=======================================================================
eap [Fri, 12 Mar 2010 08:30:20 +0000 (08:30 +0000)]
+//=======================================================================
+/*!
+ * \brief SMESH_TLink knowing its orientation
+ */
+//=======================================================================
+
+struct SMESH_OrientedLink: public SMESH_TLink
+{
+  bool _reversed;
+  SMESH_OrientedLink(const SMDS_MeshNode* n1, const SMDS_MeshNode* n2 )
+    : SMESH_TLink( n1, n2 ), _reversed( n1 != node1() ) {}
+};

14 years ago/*!
eap [Fri, 12 Mar 2010 08:26:13 +0000 (08:26 +0000)]
/*!
 * \brief High level util for effective file reading and other file operations
 */

14 years agoChanges for bug 0020671.
skl [Fri, 12 Mar 2010 05:38:02 +0000 (05:38 +0000)]
Changes for bug 0020671.

14 years agoChanges for bug 0020734.
skl [Thu, 11 Mar 2010 09:36:56 +0000 (09:36 +0000)]
Changes for bug 0020734.

14 years agofix FindFace() after the previous integration
eap [Wed, 10 Mar 2010 13:21:56 +0000 (13:21 +0000)]
fix FindFace() after the previous integration

14 years ago- const SMDS_MeshFace *FindFace(std::vector<int> nodes_ids) const;
eap [Wed, 10 Mar 2010 06:43:17 +0000 (06:43 +0000)]
-  const SMDS_MeshFace *FindFace(std::vector<int> nodes_ids) const;
+  const SMDS_MeshFace *FindFace(const std::vector<int>& nodes_ids) const;

-  static const SMDS_MeshFace* FindFace(std::vector<const SMDS_MeshNode *> nodes);
+  static const SMDS_MeshFace* FindFace(const std::vector<const SMDS_MeshNode *>& nodes);

14 years agoChanges for bug 0020671.
skl [Tue, 9 Mar 2010 14:03:48 +0000 (14:03 +0000)]
Changes for bug 0020671.

14 years ago0020682: EDF 1222 SMESH: 3D mesh from a skin mesh and with volumic cells
eap [Tue, 9 Mar 2010 13:26:18 +0000 (13:26 +0000)]
0020682: EDF 1222 SMESH: 3D mesh from a skin mesh and with volumic cells
* Fix regression made at redesigning

14 years agoa little optimize FindFace (std::vector<const SMDS_MeshNode *> nodes)
eap [Tue, 9 Mar 2010 08:17:43 +0000 (08:17 +0000)]
a little optimize FindFace (std::vector<const SMDS_MeshNode *> nodes)

14 years ago0020714: EDF GHS3DPLUGIN: shapeToMesh when creating 3D mesh from 2D mesh
eap [Fri, 5 Mar 2010 11:13:07 +0000 (11:13 +0000)]
0020714: EDF GHS3DPLUGIN: shapeToMesh when creating 3D mesh from 2D mesh
 * Fix GetPointState()

14 years agoset Kernel_Utils::Localizer before calling algo->Compute()
eap [Fri, 5 Mar 2010 07:42:20 +0000 (07:42 +0000)]
set Kernel_Utils::Localizer before calling algo->Compute()

14 years ago0020714: EDF GHS3DPLUGIN: shapeToMesh when creating 3D mesh from 2D mesh
eap [Thu, 4 Mar 2010 14:05:05 +0000 (14:05 +0000)]
0020714: EDF GHS3DPLUGIN: shapeToMesh when creating 3D mesh from 2D mesh
* Add function to find out if the given point is out of closed 2D mesh.

+  virtual TopAbs_State GetPointState(const gp_Pnt& point);

14 years ago0020714: EDF GHS3DPLUGIN: shapeToMesh when creating 3D mesh from 2D mesh
eap [Thu, 4 Mar 2010 13:57:50 +0000 (13:57 +0000)]
0020714: EDF GHS3DPLUGIN: shapeToMesh when creating 3D mesh from 2D mesh
* Fix FaceNormal()
* Add
+  static std::vector< const SMDS_MeshNode*> GetCommonNodes(const SMDS_MeshElement* e1,
+                                                           const SMDS_MeshElement* e2);

14 years agoremove commented code
eap [Thu, 4 Mar 2010 09:59:01 +0000 (09:59 +0000)]
remove commented code

14 years agoAdd a function to know kind of mesh element
eap [Thu, 4 Mar 2010 08:08:21 +0000 (08:08 +0000)]
Add a function to know kind of mesh element

+    EntityType GetElementGeomType( in long id )

14 years ago0020737: [CEA] Computing mesh fails
eap [Thu, 4 Mar 2010 07:30:41 +0000 (07:30 +0000)]
0020737: [CEA] Computing mesh fails
* Fix constructor from regression made in frames of issue 0020676

14 years agoprevent MakeMesh() from crash if myShapeIDMap.IsEmpty()
eap [Wed, 3 Mar 2010 13:58:32 +0000 (13:58 +0000)]
prevent MakeMesh() from crash if myShapeIDMap.IsEmpty()

14 years agoChanges for bug 0020753.
skl [Wed, 3 Mar 2010 11:01:36 +0000 (11:01 +0000)]
Changes for bug 0020753.

14 years agoroll back
eap [Wed, 3 Mar 2010 09:07:23 +0000 (09:07 +0000)]
roll back

14 years ago0020725: EDF 1242 SMESH : Crash avec Convert lin--> quad avec BLSURF/GHS3D on 64bits
eap [Wed, 3 Mar 2010 09:03:47 +0000 (09:03 +0000)]
0020725: EDF 1242 SMESH : Crash avec Convert lin--> quad avec BLSURF/GHS3D on 64bits
0020721: EDF 1233 SMESH : Crash/bad behavior of 'Convert linear Quadratic with Medium Nodes on Geometry' feature with BLSurf/Ghs3D
* Fix GetNodeUV() for the case of surface both U and V periodic.
* Protect QFace::GetBoundaryLink() from infinite recursion.
* Protect QFace::GetLinkChain() from stack overflow.

14 years ago0020725: EDF 1242 SMESH : Crash avec Convert lin--> quad avec BLSURF/GHS3D on 64bits
eap [Wed, 3 Mar 2010 07:48:07 +0000 (07:48 +0000)]
0020725: EDF 1242 SMESH : Crash avec Convert lin--> quad avec BLSURF/GHS3D on 64bits
0020721: EDF 1233 SMESH : Crash/bad behavior of 'Convert linear Quadratic with Medium Nodes on Geometry' feature with BLSurf/Ghs3D
* Fix GetNodeUV() for the case of surface both U and V periodic.
* Protect QFace::GetBoundaryLink() from infinite recursion.
* Protect QFace::GetLinkChain() from stack overflow.

14 years agoChanges for bug 0020671.
skl [Wed, 3 Mar 2010 07:23:24 +0000 (07:23 +0000)]
Changes for bug 0020671.

14 years ago*** empty log message ***
adam [Tue, 2 Mar 2010 15:47:09 +0000 (15:47 +0000)]
*** empty log message ***

14 years agofix comment
eap [Tue, 2 Mar 2010 06:47:35 +0000 (06:47 +0000)]
fix comment

14 years agowindows port
adam [Mon, 1 Mar 2010 14:15:48 +0000 (14:15 +0000)]
windows port

14 years ago*** empty log message ***
adam [Mon, 1 Mar 2010 14:14:38 +0000 (14:14 +0000)]
*** empty log message ***

14 years agoCorrect implementation of Max Subshape limiter.
dmv [Mon, 1 Mar 2010 14:00:46 +0000 (14:00 +0000)]
Correct implementation of Max Subshape limiter.

14 years ago*** empty log message ***
adam [Fri, 26 Feb 2010 16:08:53 +0000 (16:08 +0000)]
*** empty log message ***

14 years ago+ /*!
eap [Fri, 26 Feb 2010 08:15:02 +0000 (08:15 +0000)]
+    /*!
+     * \brief Wrap a sequence of ids in a SMESH_IDSource
+     */
+    SMESH_IDSource MakeIDSource(in long_array IDsOfElements);

14 years ago0020627: EDF 1165 HEXOTIC : Allow Hexotic to start from a 2D mesh
eap [Thu, 25 Feb 2010 14:57:40 +0000 (14:57 +0000)]
0020627: EDF 1165 HEXOTIC : Allow Hexotic to start from a 2D mesh

14 years ago0020611: [CEA] Algo lacking when editing MED meshing
eap [Thu, 25 Feb 2010 08:13:17 +0000 (08:13 +0000)]
0020611: [CEA] Algo lacking when editing MED meshing
* Generate hexahedrons from 2D skin mesh

14 years ago0020611: [CEA] Algo lacking when editing MED meshing
eap [Wed, 24 Feb 2010 13:54:30 +0000 (13:54 +0000)]
0020611: [CEA] Algo lacking when editing MED meshing
* Generate hexahedrons from 2D skin mesh

14 years ago0020611: [CEA] Algo lacking when editing MED meshing
eap [Wed, 24 Feb 2010 12:46:38 +0000 (12:46 +0000)]
0020611: [CEA] Algo lacking when editing MED meshing
* Generate hexahedrons from 2D skin mesh:

+ StdMeshers_HexaFromSkin_3D.cxx

14 years ago+ SMESH_Comment & operator=(const SMESH_Comment& c) {
eap [Wed, 24 Feb 2010 12:44:11 +0000 (12:44 +0000)]
+  SMESH_Comment & operator=(const SMESH_Comment& c) {
+    _s << c.c_str() ;
+    this->string::operator=( _s.str() );
+    return *this;
+  }
+

14 years ago+ static bool FaceNormal(const SMDS_MeshElement* F, gp_XYZ& normal, bool normalized...
eap [Wed, 24 Feb 2010 12:43:56 +0000 (12:43 +0000)]
+  static bool FaceNormal(const SMDS_MeshElement* F, gp_XYZ& normal, bool normalized=true);

14 years agoChanges for bug 0020705.
skl [Fri, 19 Feb 2010 14:38:11 +0000 (14:38 +0000)]
Changes for bug 0020705.

14 years agofix pb with GetName() in case of meshing imported 2D skin
eap [Fri, 19 Feb 2010 08:43:22 +0000 (08:43 +0000)]
fix pb with GetName() in case of meshing imported 2D skin

14 years ago0020701: Additional fix concerned to the GetName Method changes.
dmv [Thu, 18 Feb 2010 11:28:58 +0000 (11:28 +0000)]
0020701: Additional fix concerned to the GetName Method changes.

14 years ago020700: EDF 1234 SMESH: Quadrangle preference and Netgen
eap [Thu, 18 Feb 2010 08:59:19 +0000 (08:59 +0000)]
020700: EDF 1234 SMESH: Quadrangle preference and Netgen
  * Quadrangle Preference can be used by NETGEN 2D

14 years ago020697: EDF 1248 SMESH: Sub-mesh on group of face not taken into account
eap [Thu, 18 Feb 2010 08:29:00 +0000 (08:29 +0000)]
020697: EDF 1248 SMESH: Sub-mesh on group of face not taken into account
 * Correct adding geom groups into map of ansestors

14 years ago0020680: EDF 1252 SMESH: Bad cell created by Radial prism in center of torus
eap [Wed, 17 Feb 2010 14:59:19 +0000 (14:59 +0000)]
0020680: EDF 1252 SMESH: Bad cell created by Radial prism in center of torus

1) Try to build nodes using transformation before using block approach
2) workaround for wrong surface.Value(u,v) for UV near boundary of BSline surface

14 years ago0020680: EDF 1252 SMESH: Bad cell created by Radial prism in center of torus
eap [Wed, 17 Feb 2010 14:56:40 +0000 (14:56 +0000)]
0020680: EDF 1252 SMESH: Bad cell created by Radial prism in center of torus
+  /*!
+   * \brief Return transformations to get coordinates of nodes of each internal layer
+   *        by nodes of the bottom. Layer is a set of nodes at a certain step
+   *        from bottom to top.
+   */
+  bool GetLayersTransformation(std::vector<gp_Trsf> & trsf) const;

14 years agoImprove help system
vsr [Wed, 17 Feb 2010 14:55:58 +0000 (14:55 +0000)]
Improve help system

14 years ago1)
eap [Wed, 17 Feb 2010 14:54:30 +0000 (14:54 +0000)]
1)
+    ## Defines "QuadrangleParams" hypothesis
+    #  @param vertex: vertex of a trilateral geometrical face, around which triangles
+    #                 will be created while other elements will be quadrangles.
+    #                 Vertex can be either a GEOM_Object or a vertex ID within the
+    #                 shape to mesh
+    #
+    def TriangleVertex(self, vertex, UseExisting=0):

2) in FixedPoints1D(), convert geom reversed edges into IDs

14 years agocorrect documetnation page layout
dmv [Wed, 17 Feb 2010 10:13:26 +0000 (10:13 +0000)]
correct documetnation page layout

14 years agoChanges for bug 0020681.
skl [Tue, 16 Feb 2010 11:07:53 +0000 (11:07 +0000)]
Changes for bug 0020681.

14 years agofix Save() and Load()
eap [Tue, 16 Feb 2010 09:32:14 +0000 (09:32 +0000)]
fix Save() and Load()

14 years ago0020702: [CEA] Problem with Segment function of SMESH module
vsr [Tue, 16 Feb 2010 09:20:56 +0000 (09:20 +0000)]
0020702: [CEA] Problem with Segment function of SMESH module
0020701: EDF SMESH : GetName Method of smeshDC.py
Additional fix

14 years agoChanges for bug 0020681.
skl [Tue, 16 Feb 2010 09:19:59 +0000 (09:19 +0000)]
Changes for bug 0020681.

14 years ago0020702: [CEA] Problem with Segment function of SMESH module
dmv [Mon, 15 Feb 2010 09:35:36 +0000 (09:35 +0000)]
0020702: [CEA] Problem with Segment function of SMESH module

14 years agoprotect IndexToShape() from Standard_OutOfRange exception
eap [Mon, 15 Feb 2010 07:11:44 +0000 (07:11 +0000)]
protect IndexToShape() from Standard_OutOfRange exception

14 years agoreport error reasons in case of trilateral face
eap [Fri, 12 Feb 2010 14:27:33 +0000 (14:27 +0000)]
report error reasons in case of trilateral face

14 years agoIssue 20509: EDF 1065 OTHER : Add the Salome version in the header of the dump
vsr [Fri, 12 Feb 2010 08:37:10 +0000 (08:37 +0000)]
Issue 20509: EDF 1065 OTHER : Add the Salome version in the header of the dump

14 years agofix case of 2 edges
eap [Fri, 12 Feb 2010 08:15:06 +0000 (08:15 +0000)]
fix case of 2 edges

14 years agoFix compilation problem on Debian Sarge
maintenance team [Fri, 12 Feb 2010 08:03:53 +0000 (08:03 +0000)]
Fix compilation problem on Debian Sarge

14 years agoprecise error message
eap [Fri, 12 Feb 2010 07:41:39 +0000 (07:41 +0000)]
precise error message

14 years agoIssue 0020701: EDF SMESH : GetName Method of smeshDC.py
vsr [Fri, 12 Feb 2010 06:07:26 +0000 (06:07 +0000)]
Issue 0020701: EDF SMESH : GetName Method of smeshDC.py

14 years agoAdditional fix for issue 0020692: Duplicate check_*.m4 between modules.
ouv [Thu, 11 Feb 2010 15:30:29 +0000 (15:30 +0000)]
Additional fix for issue 0020692: Duplicate check_*.m4 between modules.

14 years ago0020693: EDF 1288 SMESH: Problem to recompute a mesh with a sub-mesh and a conversion...
eap [Thu, 11 Feb 2010 13:16:51 +0000 (13:16 +0000)]
0020693: EDF 1288 SMESH: Problem to recompute a mesh with a sub-mesh and a conversion linear-quadratic
* Add CheckNodeU()
* Compute parameters of created medium nodes even in force3d mode
* Leave doxygen-style comments of functions only in the header

14 years ago0020631: EDF 1195 SMESH : Merge Node : Optional display of the nodes of the mesh
dmv [Thu, 11 Feb 2010 12:08:34 +0000 (12:08 +0000)]
0020631: EDF 1195 SMESH : Merge Node : Optional display of the nodes of the mesh

14 years agoIssue 0020692: Duplicate check_*.m4 between modules.
ouv [Thu, 11 Feb 2010 10:13:46 +0000 (10:13 +0000)]
Issue 0020692: Duplicate check_*.m4 between modules.

14 years ago0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh comput...
eap [Thu, 11 Feb 2010 08:26:40 +0000 (08:26 +0000)]
0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computation to fail with netgen
* Fix for internal edges

14 years ago0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh comput...
eap [Thu, 11 Feb 2010 08:25:06 +0000 (08:25 +0000)]
0020676: EDF 1212 GEOM: Partition operation creates vertices which causes mesh computation to fail with netgen
* Fix GetOrderedEdges(): workaroud for BRepTools_WireExplorer, which return no edges if they are internal

14 years agoclear auxiliary data after Compute()
eap [Wed, 10 Feb 2010 07:36:45 +0000 (07:36 +0000)]
clear auxiliary data after Compute()

14 years ago0020682: EDF 1222 SMESH: 3D mesh from a skin mesh and with volumic cells
eap [Tue, 9 Feb 2010 11:17:06 +0000 (11:17 +0000)]
0020682: EDF 1222 SMESH: 3D mesh from a skin mesh and with volumic cells
 * Redesign in order to bind two pyramids to one base quadrangle.
 * Check presence of 3D elements sharing the base quadrangle.

14 years agoMake TNodeXYZ public, which together with SMDS_StdIterator allows getting coordinates...
eap [Tue, 9 Feb 2010 11:13:23 +0000 (11:13 +0000)]
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

14 years ago+ // std-like iteration on nodes
eap [Tue, 9 Feb 2010 11:03:51 +0000 (11:03 +0000)]
+  // std-like iteration on nodes
+  typedef SMDS_StdIterator< const SMDS_MeshNode*, SMDS_ElemIteratorPtr > iterator;
+  iterator begin_nodes() const { return iterator( nodesIterator() ); }
+  iterator end_nodes()   const { return iterator(); }

14 years ago const SMDS_MeshElement* next()
eap [Tue, 9 Feb 2010 11:03:15 +0000 (11:03 +0000)]
   const SMDS_MeshElement* next()
   {
+    if ( !more() ) return 0;

14 years agoAdd iterator, wrapper over SMDS_Iterator, adding std-like operators *, ++ etc
eap [Tue, 9 Feb 2010 11:02:53 +0000 (11:02 +0000)]
Add iterator, wrapper over SMDS_Iterator, adding std-like operators *, ++ etc
+ SMDS_StdIterator.hxx

14 years ago- SMDS_MeshElement * MeshElement(int ID);
eap [Tue, 9 Feb 2010 07:02:21 +0000 (07:02 +0000)]
-  SMDS_MeshElement * MeshElement(int ID);
+  SMDS_MeshElement * MeshElement(int ID) const;

14 years agoWrite nodes in the order of increasing ids
eap [Mon, 8 Feb 2010 14:39:14 +0000 (14:39 +0000)]
Write nodes in the order of increasing ids

-      SMDS_NodeIteratorPtr aNodesIter = myMesh->nodesIterator();
+      SMDS_NodeIteratorPtr aNodesIter = myMesh->nodesIterator(/*idInceasingOrder=*/true);

14 years agoAdd an utility to iterate on nodes in the order of increasing ids
eap [Mon, 8 Feb 2010 14:38:03 +0000 (14:38 +0000)]
Add an utility to iterate on nodes in the order of increasing ids

-  SMDS_NodeIteratorPtr nodesIterator() const;
+  SMDS_NodeIteratorPtr nodesIterator(bool idInceasingOrder=false) const;

14 years ago0020691: EDF SMESH : Export STL always in binary
vsr [Mon, 8 Feb 2010 11:22:48 +0000 (11:22 +0000)]
0020691: EDF SMESH : Export STL always in binary

14 years agoimport salome
maintenance team [Mon, 8 Feb 2010 10:28:23 +0000 (10:28 +0000)]
import salome

14 years agoImprove Help menu management
adv [Mon, 8 Feb 2010 08:35:54 +0000 (08:35 +0000)]
Improve Help menu management

14 years ago follow modif for IPAL21558 (In Group creation dialog, selection of sub-shapes in...
eap [Mon, 8 Feb 2010 07:14:33 +0000 (07:14 +0000)]
 follow modif for IPAL21558 (In Group creation dialog, selection of sub-shapes in OB, viewer and dialog is not well syncronized)

-  virtual void            processOwner( const LightApp_DataOwner* );
+  virtual bool            processOwner( const LightApp_DataOwner* );

14 years ago020674: EDF 870 SMESH: Mesh generated by Netgen not usable by GHS3D
eap [Mon, 1 Feb 2010 14:26:09 +0000 (14:26 +0000)]
020674: EDF 870 SMESH: Mesh generated by Netgen not usable by GHS3D
   * Rename HasDegenenaratedEdges() -> HasDegeneratedEdges()

14 years ago020674: EDF 870 SMESH: Mesh generated by Netgen not usable by GHS3D
eap [Mon, 1 Feb 2010 14:19:06 +0000 (14:19 +0000)]
020674: EDF 870 SMESH: Mesh generated by Netgen not usable by GHS3D

+   * \brief Check if the shape set through IsQuadraticSubMesh() or SetSubShape()
+   *        has a degenerated edges
+    * \retval bool - true if it has
+   */
+  bool HasDegenenaratedEdges() const { return !myDegenShapeIds.empty(); }

14 years agominor change
eap [Mon, 1 Feb 2010 13:30:15 +0000 (13:30 +0000)]
minor change

14 years ago020674: EDF 870 SMESH: Mesh generated by Netgen not usable by GHS3D
eap [Mon, 1 Feb 2010 13:29:23 +0000 (13:29 +0000)]
020674: EDF 870 SMESH: Mesh generated by Netgen not usable by GHS3D
   avoid creating degenetrated faces

14 years agofix comment
eap [Mon, 1 Feb 2010 13:28:11 +0000 (13:28 +0000)]
fix comment