-// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2010 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
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
#include <Standard_Stream.hxx>
//Get the reference edges
int ind = 0;
int aLen = theEdges.length();
- list<int> anEdges;
+ std::list<int> anEdges;
for (; ind < aLen; ind++) {
anEdges.push_back(theEdges[ind]);
}
//Get the reference edges
int ind = 0;
int aLen = theEdges.length();
- list<int> anEdges;
+ std::list<int> anEdges;
for (; ind < aLen; ind++) {
anEdges.push_back(theEdges[ind]);
}
//Get the reference faces
int ind = 0;
int aLen = theFaces.length();
- list<int> aFaces;
+ std::list<int> aFaces;
for (; ind < aLen; ind++) {
aFaces.push_back(theFaces[ind]);
}
//Get the reference faces
int ind = 0;
int aLen = theFaces.length();
- list<int> aFaces;
+ std::list<int> aFaces;
for (; ind < aLen; ind++) {
aFaces.push_back(theFaces[ind]);
}
//Get the reference vertex
int ind = 0;
int aLen = theVertexes.length();
- list<int> aVertexes;
+ std::list<int> aVertexes;
for (; ind < aLen; ind++) {
aVertexes.push_back(theVertexes[ind]);
}
return GetObject(anObject);
}
+//=============================================================================
+/*!
+ * MakeFillet1D
+ */
+//=============================================================================
+GEOM::GEOM_Object_ptr GEOM_ILocalOperations_i::MakeFillet1D
+ (GEOM::GEOM_Object_ptr theShape, CORBA::Double theR,
+ const GEOM::ListOfLong& theVertexes)
+{
+ GEOM::GEOM_Object_var aGEOMObject;
+
+ //Get the reference shape (wire)
+ Handle(GEOM_Object) aShapeRef = GetObjectImpl(theShape);
+ if (aShapeRef.IsNull()) return aGEOMObject._retn();
+
+ //Get the reference vertex
+ int ind = 0;
+ int aLen = theVertexes.length();
+ std::list<int> aVertexes;
+ for (; ind < aLen; ind++) {
+ aVertexes.push_back(theVertexes[ind]);
+ }
+
+ //Create the Fillet
+ Handle(GEOM_Object) anObject =
+ GetOperations()->MakeFillet1D(aShapeRef, theR, aVertexes);
+ if (!GetOperations()->IsDone() || anObject.IsNull())
+ return aGEOMObject._retn();
+
+ return GetObject(anObject);
+}
+
//=============================================================================
/*!
* MakeChamferAll
//Get the reference faces
int ind = 0;
int aLen = theFaces.length();
- list<int> aFaces;
+ std::list<int> aFaces;
for (; ind < aLen; ind++) {
aFaces.push_back(theFaces[ind]);
}
//Get the reference faces
int ind = 0;
int aLen = theFaces.length();
- list<int> aFaces;
+ std::list<int> aFaces;
for (; ind < aLen; ind++) {
aFaces.push_back(theFaces[ind]);
}
//Get the reference edges
int ind = 0;
int aLen = theEdges.length();
- list<int> aEdges;
+ std::list<int> aEdges;
for (; ind < aLen; ind++) {
aEdges.push_back(theEdges[ind]);
}
//Get the reference edges
int ind = 0;
int aLen = theEdges.length();
- list<int> aEdges;
+ std::list<int> aEdges;
for (; ind < aLen; ind++) {
aEdges.push_back(theEdges[ind]);
}