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
#17351 [CEA] Mesh with Polyhedron
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_SpacePosition.cxx
diff --git
a/src/SMDS/SMDS_SpacePosition.cxx
b/src/SMDS/SMDS_SpacePosition.cxx
index 634f4896d7267f5b75de6a45cc538d07003c9dd7..e44174451368e035bbd9bd2619044faf27292f8e 100644
(file)
--- a/
src/SMDS/SMDS_SpacePosition.cxx
+++ b/
src/SMDS/SMDS_SpacePosition.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
3
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
@@
-6,7
+6,7
@@
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-20,26
+20,25
@@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// SMESH SMDS : implementaion of Salome mesh data structure
+// SMESH SMDS : implementa
t
ion of Salome mesh data structure
// File : SMDS_SpacePosition.cxx
// Author : Jean-Michel BOULCOURT
// Module : SMESH
//
#include "SMDS_SpacePosition.hxx"
// File : SMDS_SpacePosition.cxx
// Author : Jean-Michel BOULCOURT
// Module : SMESH
//
#include "SMDS_SpacePosition.hxx"
+#include "SMDS_VertexPosition.hxx"
SMDS_SpacePosition* SMDS_SpacePosition::_originPosition = new SMDS_SpacePosition();
SMDS_SpacePosition* SMDS_SpacePosition::_originPosition = new SMDS_SpacePosition();
-SMDS_
SpacePosition::SMDS_SpacePosition(double x, double y, double z
)
+SMDS_
PositionPtr SMDS_SpacePosition::originSpacePosition(
)
{
{
+ return SMDS_PositionPtr( _originPosition, /*isOwner=*/false );
}
}
-SMDS_
TypeOfPosition SMDS_SpacePosition::GetTypeOfPosition() const
+SMDS_
PositionPtr SMDS_VertexPosition::StaticPosition()
{
{
- return SMDS_TOP_3DSPACE;
+ static SMDS_Position* _vertexPosition = new SMDS_VertexPosition;
+ return SMDS_PositionPtr( _vertexPosition, /*isOwner=*/false );
}
}
-SMDS_PositionPtr SMDS_SpacePosition::originSpacePosition()
-{
- return _originPosition;
-}