Commit Graph

1362 Commits

Author SHA1 Message Date
eap
fce720f2d2 22465: [CEA] sometimes isinstance(m, Mesh) returns False for Mesh objects // PPGP pb
class MeshMeta(type):
    def __instancecheck__(cls, inst):
        """Implement isinstance(inst, cls)."""
        return any(cls.__subclasscheck__(c)
                   for c in {type(inst), inst.__class__})

    def __subclasscheck__(cls, sub):
        """Implement issubclass(sub, cls)."""
        return type.__subclasscheck__(cls, sub) or (cls.__name__ == sub.__name__ and cls.__module__ == sub.__module__)

...

class Mesh:
    __metaclass__ = MeshMeta

...
2014-02-05 08:08:10 +00:00
eap
cc9e7d5442 22358: EDF SMESH: Body Fitting algorithm: origin point of grid defined by spacing 2014-02-04 15:51:49 +00:00
eap
5ba69b0e0f 22359: Body Fitting algorithm: grid orientation 2014-02-04 13:27:03 +00:00
eap
b416ea5c24 22359: Body Fitting algorithm: grid orientation
+  ${GEOM_INCLUDE_DIRS}

+  ${GEOM_GEOMUtils}
2014-02-04 13:06:41 +00:00
eap
494cae9236 22359: Body Fitting algorithm: grid orientation
Add labels to arrows
2014-02-04 13:06:14 +00:00
eap
a62ca0b865 22359: Body Fitting algorithm: grid orientation
Move global methods needed for NCollection_DataMap< TopoDS_Shape, * >
to class SMESHDS_Hasher in order not to clash with the same global definitions

-  typedef NCollection_DataMap< TopoDS_Shape, THypList > ShapeToHypothesis;
+  typedef NCollection_DataMap< TopoDS_Shape, THypList, SMESHDS_Hasher > ShapeToHypothesis;
2014-02-04 13:05:33 +00:00
eap
cd3ffac3fa 22359: Body Fitting algorithm: grid orientation
22358: Body Fitting algorithm: origin point of grid defined by spacing
2014-02-04 13:02:26 +00:00
eap
fee6909125 22473: EDF 2825 SMESH: Memory allocation problem with ViscousLayer2D
1) enable recursive calls from StdMeshers_ViscousLayers2D::Compute( aMesh, F );
2) fix computeQuadDominant() for a case of triangles on 2 sides
3) do not use triaVertex for a quadrangle FACE
2014-01-31 13:43:11 +00:00
eap
ae475d83da 22473: EDF 2825 SMESH: Memory allocation problem with ViscousLayer2D
Use _noShrinkVert
2014-01-31 13:40:41 +00:00
rnv
b737ae98e6 Additional fix for the "0022460: [CEA 1042] Copy Mesh: impossible mesh selection in the object browser if selection in 3D view is disabled" issue. 2014-01-24 11:16:50 +00:00
rnv
6a9d0d6ae6 Fix for the "0022460: [CEA 1042] Copy Mesh: impossible mesh selection in the object browser if selection in 3D view is disabled" 2014-01-24 08:37:57 +00:00
eap
f202478154 22362: EDF SMESH: Quadrangle (mapping) algorithm: enforced vertices
fix for a case of http://www.salome-platform.org/forum/forum_10/863809970#478269857
2014-01-23 12:46:37 +00:00
eap
c94d606fe3 22316: EDF 2719 SMESH: Split hexas into prisms
Make Python API be equal to IDL API
2014-01-21 16:37:16 +00:00
rnv
0d8d658a46 Fix the first item of the 0022387: EDF GUI: New behaviour of store position of windows is not always suitable" issue:
1) Bad initial position of windows in some modules with the option "store position of windows" unchecked.
2014-01-21 12:37:34 +00:00
eap
3f7c707fd9 22316: EDF 2719 SMESH: Split hexas into prisms
disable dialog if a mesh includes no hexahedra
2014-01-21 09:24:53 +00:00
eap
67dba15dfd 22244: [CEA] Method to compute the normal to a mesh face
-    double_array GetFaceNormal(in long faceId);
+    double_array GetFaceNormal(in long faceId, in boolean normalized);
2014-01-20 17:42:20 +00:00
eap
e12cb3f8c3 22362: EDF SMESH: Quadrangle (mapping) algorithm: enforced vertices
fix recursive case of computeQuadPref()
2014-01-20 16:39:00 +00:00
eap
f55c997d2e fix indentation 2014-01-20 10:45:36 +00:00
eap
d2c62e114d 22316: EDF 2719 SMESH: Split hexas into prisms
+  double GetDistance( const SMDS_MeshElement* elem, const gp_Pnt& point );
+  double GetDistance( const SMDS_MeshEdge* edge, const gp_Pnt& point );
+  double GetDistance( const SMDS_MeshVolume* volume, const gp_Pnt& point );
2014-01-20 10:35:19 +00:00
eap
0eac807ec1 22316: EDF 2719 SMESH: Split hexas into prisms
+  void                 SetArrowShapeAndNb( int    nbArrows,
+                                           double headLength,
+                                           double headRadius,
+                                           double start=0.);
+  void                 SetArrows( const gp_Ax1* axes,
+                                  double        length);

+  vtkUnstructuredGrid* GetGrid() const;
2014-01-20 10:34:46 +00:00
eap
74b03c9f40 22316: EDF 2719 SMESH: Split hexas into prisms
namespace SMESH
 {
   enum SMESHGUI_FilterType {
     QuadFilter              =  5,
     TriaFilter              =  6,
+    FirstGeometryTypeFilter,
+    FirstEntityTypeFilter   = FirstGeometryTypeFilter + SMDSGeom_NONE,
+    LastFilter              = FirstEntityTypeFilter   + SMDSEntity_Last
   };
 };

+class SMESHGUI_VolumeShapeFilter : public SMESHGUI_Filter
+{
2014-01-20 10:34:21 +00:00
eap
b9b3af112d 22316: EDF 2719 SMESH: Split hexas into prisms
+  static int GetOppFaceIndexOfHex( int faceIndex );
2014-01-20 10:32:49 +00:00
eap
80d5c05fce 22316: EDF 2719 SMESH: Split hexas into prisms
+  virtual SMDSAbs_GeometryType GetGeomType()  const { return SMDSGeom_POLYGON; }
2014-01-20 10:32:30 +00:00
eap
ffa5254282 22316: EDF 2719 SMESH: Split hexas into prisms
+    GeometryType GetElementShape( in long id )
+      raises (SALOME::SALOME_Exception);
2014-01-20 10:32:14 +00:00
eap
f500e5a8b6 22316: EDF 2719 SMESH: Split hexas into prisms 2014-01-20 10:31:23 +00:00
eap
a406fd6793 22362: EDF SMESH: Quadrangle (mapping) algorithm: enforced vertices
fix for recursive call of computeQuadPref()
2014-01-15 10:27:00 +00:00
vsr
f7aba4830d Merge from BR_imps_2013 14/01/2014 2014-01-15 09:41:17 +00:00
eap
b117205bfd 22455: Error "No mesh elements assigned to a face" is raised instead of a simple warning
1) Fix finding a shape in a study
2) Append study entry to a name of published failed sub-shape
2014-01-10 08:01:57 +00:00
eap
dda95cb5b7 22455: Error "No mesh elements assigned to a face" is raised instead of a simple warning
Append study entry to a failed sub-shape name,
else it's hard to find a sub-shape in the study
2014-01-09 15:08:07 +00:00
vsr
072a73120b Merge from V7_3_BR (09/01/2014) 2014-01-09 14:20:44 +00:00
vsr
2cd148d066 Merge from V7_3_BR branch 18/12/2013 2013-12-18 15:08:18 +00:00
mpa
49638e2cad INT PAL: 0052225: Failed mesh - number of isolines does not correspond to settings 2013-12-13 10:17:22 +00:00
eap
46d1b0f374 Synchronize with *_msg_en.ts 2013-12-13 08:48:28 +00:00
vsr
3cd8d693a9 Update documentation 2013-12-12 14:35:44 +00:00
eap
dcf2d0e66c "viscous layer 3d around foil"
http://www.salome-platform.org/forum/forum_10/77751736

 Use angular smoothing and swap diagonals during shrink()
2013-12-12 13:52:28 +00:00
eap
065232801d "viscous layer 3d around foil"
http://www.salome-platform.org/forum/forum_10/77751736

Fix InverseDiag()
2013-12-11 14:52:44 +00:00
eap
21619a293e 52236: TC7.3.0 Operation "Extrusion along a path" brings to wrong results if field "Rotation Angles" is used for calculation.
Fix setting angles in MakeExtrElements()
2013-12-06 15:55:21 +00:00
eap
f22869c9cf 0052235: TC7.3.0: continious fatal errors after splitting into 24 tetrahedra
Protect myMesh from deletion in onApply()
2013-12-06 15:26:44 +00:00
rnv
1f846c64e0 Show warning only in the verbose mode. 2013-12-06 06:20:09 +00:00
eap
5e342ebfd0 52223: TC7.3.0:Automatically create groups for MED export does not
save in export mesh dialog box,when we check it in preferences
2013-12-05 15:47:22 +00:00
eap
f24e7f0173 Regression SALOME_TESTS/Grids/smesh/bugs_02/C9
In updateDegenUV() set number of nodes on a degenerated side to be
same as on an opposite side ONLY IF myQuadType == QUAD_STANDARD
2013-12-05 11:26:24 +00:00
rnc
3a98cb17c9 Japanese translations update 2013-12-05 10:38:14 +00:00
eap
78bfc8db7d 22434: [CEA 1022] If selection is disabled, the contextual menu of VTK view does not update on selected object
Fix processOwner() for the case of disabled SVTK selection
2013-12-05 09:32:23 +00:00
rnc
370bb866cf REG: SurfOpt plugin : Documentation update + small corrections 2013-12-04 09:46:28 +00:00
mpa
1e8362453d INT PAL 0052190: TC7.3.0: impossible to set proper value for clipping 2013-12-04 09:43:48 +00:00
kga
d280b47f5f IPAL0052197: TC7.3.0 "Fatal error" when try to add new filter to filter library 2013-12-04 09:36:38 +00:00
akl
6518fc4882 Set debug library name on Win32. 2013-12-04 08:41:23 +00:00
kga
68e9313a5e IPAL0052195: TC7.3.0: Application crashes after closing "Add Quadratic Edge" dialog 2013-12-04 05:38:25 +00:00
rnc
26a602248d BUG: Yams plugin: Fixed bad default values due too previous integrations for passing to MGSurfOpt 2013-12-03 17:37:51 +00:00
rnc
f543238c60 BUG: MGCleaner / MGSurfOpt : Fixed a problem with the doc displayed in a non-standard way when clickin on help button.
A pdf file included in the general plugin documentation was opened through xdg-open instead of showing the general documentation in the browser specified in the preferences. This latest behaviour has been implemented
2013-12-03 16:40:54 +00:00