Commit Graph

1562 Commits

Author SHA1 Message Date
eap
06abe76e03 + * Creates LINEAR!!!!!!!!! octahedron 2012-07-19 13:18:07 +00:00
eap
bcaa0ad2ee 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
SMDS_MeshElement* AddElement(const std::vector<const SMDS_MeshNode*> & nodes,
                                const SMDSAbs_ElementType                 type,
                                const bool                                isPoly,
                                const int                                 ID = -1,
+                               const double                              ballDiameter=0.);

Adjust Transform() and FindElementsByPoint()
2012-07-19 13:17:43 +00:00
eap
baade10114 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+  int NbBalls() const throw(SALOME_Exception);
2012-07-19 13:14:54 +00:00
eap
9f74998b92 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+  void AllocateDiameters( vtkIdType maxVtkID );
+  void SetBallDiameter( vtkIdType vtkID, double diameter );
+  double GetBallDiameter( vtkIdType vtkID ) const;
2012-07-19 13:14:28 +00:00
eap
f738cc36e8 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
template<typename VALUE,
          typename VALUE_SET_ITERATOR,
          typename ACCESOR=SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>,
+         typename VALUE_FILTER=SMDS::PassAllValueFilter<VALUE> >
 class SMDS_SetIterator : public SMDS_Iterator<VALUE>
2012-07-19 13:14:09 +00:00
eap
ff0bf10f4a 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+  int NbBalls()      const { return myNbBalls; }
2012-07-19 13:13:13 +00:00
eap
c353b35085 + some comments 2012-07-19 13:12:54 +00:00
eap
391cd4d010 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+SMDSAbs_ElementType toSmdsType(SMDSAbs_EntityType entityType)
+SMDSAbs_ElementType toSmdsType(SMDSAbs_GeometryType geomType)
2012-07-19 13:12:33 +00:00
eap
09b72334df 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+  virtual SMDS_ElemIteratorPtr elementGeomIterator(SMDSAbs_GeometryType type) const;
+  virtual SMDS_ElemIteratorPtr elementEntityIterator(SMDSAbs_EntityType type) const;

+  virtual SMDS_BallElement* AddBallWithID(int n,                   double diameter, int ID);
+  virtual SMDS_BallElement* AddBallWithID(const SMDS_MeshNode * n, double diameter, int ID);
+  virtual SMDS_BallElement* AddBall      (const SMDS_MeshNode * n, double diameter);

+  const SMDS_BallElement* FindBall(int idnode) const;
+  static const SMDS_BallElement* FindBall(const SMDS_MeshNode * n);
+  virtual int NbBalls() const;

+  ObjectPool<SMDS_BallElement>* myBallPool;
2012-07-19 13:08:37 +00:00
eap
064c555726 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+        virtual SMDSAbs_GeometryType GetGeomType() const;
2012-07-19 13:06:39 +00:00
eap
2cafa22d7b 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+    SMDSAbs_Ball,
+    SMDSGeom_BALL,
+  SMDSEntity_Ball,
2012-07-19 12:55:55 +00:00
eap
1d17befa34 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+	SMDS_BallElement.hxx
2012-07-19 12:55:29 +00:00
eap
229db9cb6f 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes 2012-07-19 12:50:10 +00:00
eap
20bed398e1 shorten code 2012-07-19 12:49:09 +00:00
eap
61cd810fbe 0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
+    class SMESHCONTROLS_EXPORT BallDiameter: public virtual NumericalFunctor{
2012-07-19 12:47:14 +00:00
eap
c4e4c8b73c fix GetSubMeshNodesId() 2012-07-18 12:41:15 +00:00
eap
171b3e8882 0021723: EDF SMESH: Calculation of Aspect Ratio
Use vtkMeshQuality::QuadAspectRatio()
2012-07-13 07:24:06 +00:00
eap
d51770096b 021720: EDF SMESH: Body Fitting hypothesis dialog - Switching between the definition mode resets the previous values 2012-07-11 16:10:38 +00:00
eap
e24d326fce Improve comments 2012-07-11 08:20:12 +00:00
eap
31c3351c50 http://www.salome-platform.org/forum/forum_10/508123838#632325403 : Extrude3D doesn't work
Restore error reporting in the case where existing 1D mesh
  mismatches the projected 2D mesh
2012-07-09 08:35:37 +00:00
eap
187dac541f 0021676: EDF 2283 NETGENPLUGIN: Improve Netgen 1D-2D-3D to generate pyramids in case where input 2D mesh includes quadrangles
+  const TopoDS_Shape& GetShape() const { return myShape; }
2012-07-05 09:40:33 +00:00
eap
85abc582be 0021692: EDF 2314 : Hexaedron failure
Fix for the case where topologically neighboring faces composing a box
side are not neighboring within the list of sub-shapes of a box
2012-07-04 14:55:48 +00:00
gdd
889cfca686 Update translation files for the Reverse Faces dialog. 2012-07-04 12:20:52 +00:00
eap
30241e819e 0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF
struct SMESH_TNodeXYZ : public gp_XYZ
 {
+  double               _xyz[3];
2012-07-02 13:26:36 +00:00
eap
2ee680b116 0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF
Enable IsQuadraticSubMesh() work with compounds
2012-07-02 13:25:53 +00:00
eap
c210844f50 0021542: EDF 1699 SMESH: Reorient a group of faces 2012-06-29 13:58:07 +00:00
eap
c28b4480af 0021542: EDF 1699 SMESH: Reorient a group of faces
+    def Reorient2D(self, the2DObject, theDirection, theFaceOrPoint ):
2012-06-29 13:56:13 +00:00
eap
8e5a97609f remove commented code 2012-06-29 13:55:31 +00:00
eap
356b0f81d3 0021542: EDF 1699 SMESH: Reorient a group of faces
+	SMESHGUI_ReorientFacesDlg.h \
2012-06-29 13:54:55 +00:00
eap
dbf098c68f 0021542: EDF 1699 SMESH: Reorient a group of faces
+  // Return height of the tree, full or from this level to topest leaf
+  int                    getHeight(const bool full=true) const;
2012-06-29 13:47:33 +00:00
eap
b998225160 0021542: EDF 1699 SMESH: Reorient a group of faces
namespace SMESHUtils
{
+  template <class TVECTOR>
+  void CompactVector(TVECTOR& vec)
}
2012-06-29 13:47:05 +00:00
eap
4847e994d9 0021542: EDF 1699 SMESH: Reorient a group of faces
a general treatment of sub-meshes passed as arguments not to move
  their creation at script end

+  void _pyGen::PlaceSubmeshAfterItsCreation( Handle(_pyCommand) theCmdUsingSubmesh ) const;
+  static bool _pySubMesh::CanBeArgOfMethod(const _AString& theMethodName);
2012-06-29 13:46:17 +00:00
eap
95a77fcb02 + CORBA::Long Reorient2D(SMESH::SMESH_IDSource_ptr the2Dgroup,
+                         const SMESH::DirStruct&   theDirection,
+                         CORBA::Long               theFace,
+                         const SMESH::PointStruct& thePoint) throw (SALOME::SALOME_Exception);
2012-06-29 13:43:18 +00:00
eap
c6bde687aa struct SMESH_ElementSearcher
{
+  virtual const SMDS_MeshElement* FindClosestTo( const gp_Pnt&       point,
+                                                 SMDSAbs_ElementType type) = 0;
 }
+  int Reorient2D (TIDSortedElemSet &       theFaces,
+                  const gp_Dir&            theDirection,
+                  const SMDS_MeshElement * theFace);

+  static double GetDistance( const SMDS_MeshFace* face, const gp_Pnt& point );

+  void ElementBndBoxTree::getElementsInSphere ( const gp_XYZ&     center,
+                                                const double      radius,
+                                                TIDSortedElemSet& foundElems)
2012-06-29 13:41:37 +00:00
eap
6051d0caf8 struct SMESH_ElementSearcher
{
+  virtual const SMDS_MeshElement* FindClosestTo( const gp_Pnt&       point,
+                                                 SMDSAbs_ElementType type) = 0;
 }
+  int Reorient2D (TIDSortedElemSet &       theFaces,
+                  const gp_Dir&            theDirection,
+                  const SMDS_MeshElement * theFace);

+  static double GetDistance( const SMDS_MeshFace* face, const gp_Pnt& point );
2012-06-29 13:40:11 +00:00
vsr
2f6ee50dcd 0021669: EDF 2262 SMESH: "Mesh information" takes a long time on small mesh with joint elements 2012-06-20 14:54:14 +00:00
eap
16f4d26534 Avoid synchronization with geom groups when closing a study
+  void setCurrentStudy( SALOMEDS::Study_ptr theStudy,
+                        bool                theStudyIsBeingClosed=false);
2012-06-20 12:25:16 +00:00
eap
aad57bda9f IPAL22856 2D quadrangle mesher of reduced type works wrong
change algorithm as requested by IPAL22856 - care of symmetry
2012-06-08 10:45:42 +00:00
eap
ff4dc09d85 IPAL22856 2D quadrangle mesher of reduced type works wrong
refactoring ComputeReduced(), but algorithm still remains the same
2012-06-08 07:27:26 +00:00
eap
35eb82363a - SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0);
+  SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0, double u=0., double v=0.);
2012-06-08 07:06:43 +00:00
gdd
86c4cc3003 Fix for compilation with gcc 4.7 2012-06-07 11:26:44 +00:00
vsr
d4a710ce52 Merge from V6_5_BR 05/06/2012 2012-06-05 12:18:07 +00:00
eap
180b82cf53 0021540: [CEA] Internal test fails : prisms
Fix FindMatchingNodesOnFaces() for spheres ( DeuxSpheres.py )
2012-04-11 14:34:04 +00:00
eap
35a739dc93 0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
Fix for the case of no vertex association
2012-04-11 13:10:03 +00:00
eap
330b5970e3 0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
+  static std::string GeomObjectToEntry(GEOM::GEOM_Object_ptr&  theGeomObject);
2012-04-11 13:08:52 +00:00
eap
55899c73f3 0021529: [CEA 551] I,j,k mesher does not mesh 2D quadragular meshes
correct isClosedChainOfSides()
2012-04-11 08:35:01 +00:00
eap
719b352189 0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
keep entries of shapes to be able to return a correct GEOM_Object in
case if it is published several times with different names
2012-04-11 08:23:17 +00:00
eap
b9b021a25d 0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
+  static GEOM::GEOM_Object_ptr EntryOrShapeToGeomObject (const std::string&  theEntry,
+                                                         const TopoDS_Shape& theShape);

+  static void SaveToStream( const std::string& studyEntry, std::ostream & stream);
2012-04-11 08:20:17 +00:00
eap
08e8a82bb2 0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
In GetGroupSubMeshesContaining() preview a case where the main
     shape is a group
2012-04-11 08:19:09 +00:00
eap
dbb704ffd5 some decorations 2012-04-10 10:10:11 +00:00
eap
d1fa9ee867 0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm
not create excess edges on the seam edge
2012-04-10 10:09:32 +00:00
eap
ef93a614a6 0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm
fix merging nodes in case 1D-2D projection of the colsed face (care
   of nodes on the seam edge)
2012-04-10 10:06:23 +00:00
eap
a17fd6ce6b 0021529: [CEA 551] I,j,k mesher does not mesh 2D quadragular meshes
+   bool isClosedChainOfSides(...)
2012-04-09 15:40:23 +00:00
rnv
8d39a9f28e Porting SMESH Plugins on Win32 platform. 2012-03-28 14:37:07 +00:00
rnv
d44f22428b 0021308: EDF 1923 SMESH: Remove hard-coded dependency of the external mesh plugins from the SMESH module: Update documentation. 2012-03-27 12:52:59 +00:00
rnv
da4fe2a060 Avoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog. 2012-03-27 09:52:22 +00:00
vsr
a16044eab3 0021515: EDF 2169 SMESH: groups not in OB 2012-03-23 14:42:48 +00:00
prascle
3776dd7ec5 PR: reorganise smesh plugins and correct MeshCut when there are groups 2012-03-23 13:13:21 +00:00
eap
ae4c8e00df fix raising exception in algoCreator.__call__() 2012-03-23 11:55:39 +00:00
eap
f932a6abb6 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
set "Compare" to FT_EqualTo instead of FT_Undefined
2012-03-23 09:52:28 +00:00
eap
ddec989c2f 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
clear re-setting filters to group
2012-03-23 09:11:25 +00:00
eap
f4f14a98e3 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
In GetSourceSubMeshes(), fix getting a main sub-mesh of a not loaded mesh
2012-03-22 14:10:37 +00:00
eap
264238f852 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
loadDependentMeshes() before algo->Compute()
2012-03-22 14:09:13 +00:00
eap
3ca6b8c524 precise error messages 2012-03-22 12:42:58 +00:00
eap
c20e5a3b8e 0021468]: EDF 2073 SMESH: Body-fitting algo creates elements in hole
1)   re-fix after optimization (attempt #2)
2)   fix protection from not thread safe shapes
2012-03-22 11:54:46 +00:00
eap
16042a8750 0021468]: EDF 2073 SMESH: Body-fitting algo creates elements in hole
re-fix after optimization
2012-03-22 08:58:34 +00:00
eap
93aaa60ce3 0021517: Bad filter dumped when hdf study from previous version of Salome is loaded
+  void fixFunctorType(...)
2012-03-21 15:55:38 +00:00
gdd
51949e5059 In Extrusion dialog, the distance was troncated to the lower integer. With a distance <1, the extrusion vector size was zero. 2012-03-21 15:41:10 +00:00
eap
5ea2cc6434 0021526: EDF 1855 SMESH: Regression in the Radial Quadrangle hypothesis
fix algoCreator.__call__()
2012-03-21 10:22:32 +00:00
eap
b0b291e152 0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
performance optimization using tbb
2012-03-21 09:03:12 +00:00
eap
eeb19a3f2a 0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
+if WITH_TBB
+  libStdMeshers_la_CPPFLAGS += $(TBB_INCLUDES)
+  libStdMeshers_la_LDFLAGS  += $(TBB_LIBS)
+endif
2012-03-21 09:02:23 +00:00
eap
256069a7e6 0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
in SMESH_TNodeXYZ use thread safe getting node coords
2012-03-21 09:02:04 +00:00
eap
a63a653731 untabify 2012-03-21 09:01:05 +00:00
eap
5c5ce5f038 0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
+  void   GetXYZ(double xyx[3]) const; // thread safe getting coords
2012-03-21 09:00:38 +00:00
eap
b1255ded98 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
-  if ( !varName.isEmpty() )
+  if ( varName.isEmpty() )
2012-03-19 16:40:29 +00:00
eap
bf4cd9150f 0021522: EDF 573 SMESH: Regression in RotationSweep
-        MaxAngle,Parameters = ParseAngles(MaxAngle)
+        MaxAngle,Parameters,hasVars = ParseAngles(MaxAngle)
2012-03-19 14:55:51 +00:00
eap
6d6fc57a7f 0021521: EDF 317 SMESH: Regression in Wire_Discretisation LengthNearVertex hypotesis
+from smesh import GetName, TreatHypoStatus
2012-03-19 14:50:26 +00:00
eap
9176157728 0021520: EDF 522 SMESH: Regression in MirrorMakeMesh
-        mesh.SetParameters(Mirror.parameters)
+        self.mesh.SetParameters(Mirror.parameters)
2012-03-19 14:31:57 +00:00
eap
834b58597d 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
adjust _pyHypothesisReader() for HexoticPLUGIN_ROOT_DIR but not HEXOTICPLUGIN_ROOT_DIR
2012-03-19 12:32:35 +00:00
eap
a75b6e066e 0020749: EDF 1291 SMESH : Create 2D Mesh from 3D improvement
In MakeBoundaryMesh(), try to set new elements to a shape
2012-03-16 16:38:19 +00:00
gdd
d0cb37789d Update messages en/fr while loading a mesh data 2012-03-15 16:50:26 +00:00
vsr
05189ca91b 0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Show message in the status bar on mesh loading operation
2012-03-15 16:10:52 +00:00
vsr
d2f2237450 0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Change message format
2012-03-15 15:43:52 +00:00
eap
1ed22ce0be 0020463: EDF 1099 SMESH: performance regression from V4 to V5
make ParseParameters() also return a flag signaling that there are
variables among parameters and in AddNode() call mesh.SetParameters()
only if it's true
2012-03-15 12:14:52 +00:00
eap
8317c21cad void UpdateParameters(const char* theParameters)
{
+  if ( strlen(theParameters) == 0 ) return;
2012-03-15 12:11:16 +00:00
vsr
b0b26bc35f Format of preferences messages has been changed ('/' is used as separator instead of ':') 2012-03-15 09:24:23 +00:00
eap
b66badd782 0021208: EDF 1138 SMESH: Performance issue when loading SMESH with an hdf file containing a big mesh
Register tmp files in Engines::Container to be removed by killSalome.py
2012-03-15 08:54:09 +00:00
eap
c668696b87 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Fix reading nodes from a new HDF file (attempt #2)
2012-03-14 15:20:31 +00:00
eap
c080bab83c 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
Fix reading nodes from a new HDF file
2012-03-14 15:03:06 +00:00
eap
5da7113dc9 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
More docs
2012-03-14 13:39:57 +00:00
eap
1e2742728c Prevent recording nodes as elements 2012-03-14 12:32:53 +00:00
ouv
3f1a249dc8 IPAL22870: Incorrect numbering of volume elements 2012-03-14 08:59:47 +00:00
eap
24bd6a0e24 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
rename classes to start from "StdMeshersDC_"
2012-03-11 10:31:27 +00:00
eap
344f1bff78 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
print errors occured while loading plugins
2012-03-11 10:30:52 +00:00
eap
28bb38ba81 0021509: EDF 2157: Error in the dump
1) fix _pyCommand::GetArg()
  2) AddMeshAccessorMethod() to "group.AddFrom( mesh )" command
2012-03-11 10:12:30 +00:00
eap
f93f0a8570 typo 2012-03-11 08:53:51 +00:00
eap
8b26d4794f 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
protect from exceptions at importing plugins
2012-03-11 08:53:28 +00:00
eap
649673b639 error in the script
-mesh.TriToQuadObject(GroupTriToQuad, None , 1.57)
+mesh.TriToQuadObject(GroupTriToQuad, smesh.FT_AspectRatio , 1.57)
2012-03-11 08:52:28 +00:00
eap
d4675122f5 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Now it's necessary to call myMesh->SetParameters() just before
  calling a method using parameters that can be defined via notebook variables
2012-03-07 15:13:29 +00:00
eap
4a78d582ba 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
Add elements used in SMESH_2smeshpy
2012-03-07 15:11:06 +00:00