Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix negative volume of valid but small polyhedron
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_MeshEditPreview.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx
b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx
index 7dca619fb97c75670ee3ead61eb71c461f293899..97e4587407ee56ab92947588f521e778b8b707d3 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
9
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-167,10
+167,10
@@
vtkIdType getCellType( const SMDSAbs_ElementType theType,
*/
//================================================================================
*/
//================================================================================
-void SMESHGUI_MeshEditPreview::SetData (const SMESH::MeshPreviewStruct
*
previewData)
+void SMESHGUI_MeshEditPreview::SetData (const SMESH::MeshPreviewStruct
&
previewData)
{
// Create points
{
// Create points
- const SMESH::nodes_array& aNodesXYZ = previewData
->
nodesXYZ;
+ const SMESH::nodes_array& aNodesXYZ = previewData
.
nodesXYZ;
vtkPoints* aPoints = vtkPoints::New();
aPoints->SetNumberOfPoints(aNodesXYZ.length());
vtkPoints* aPoints = vtkPoints::New();
aPoints->SetNumberOfPoints(aNodesXYZ.length());
@@
-182,8
+182,8
@@
void SMESHGUI_MeshEditPreview::SetData (const SMESH::MeshPreviewStruct* previewD
aPoints->Delete();
// Create cells
aPoints->Delete();
// Create cells
- const SMESH::long_array& anElemConnectivity = previewData
->
elementConnectivities;
- const SMESH::types_array& anElemTypes = previewData
->
elementTypes;
+ const SMESH::long_array& anElemConnectivity = previewData
.
elementConnectivities;
+ const SMESH::types_array& anElemTypes = previewData
.
elementTypes;
vtkIdType aCellsSize = anElemConnectivity.length() + anElemTypes.length();
vtkIdType aNbCells = anElemTypes.length();
vtkIdType aCellsSize = anElemConnectivity.length() + anElemTypes.length();
vtkIdType aNbCells = anElemTypes.length();