Integration of OCCT 6.5.0 from SVN
[occt.git] / src / XBRepMesh / XBRepMesh.cxx
diff --git a/src/XBRepMesh/XBRepMesh.cxx b/src/XBRepMesh/XBRepMesh.cxx
new file mode 100755 (executable)
index 0000000..03c761c
--- /dev/null
@@ -0,0 +1,30 @@
+// File:       XBRepMesh.cxx
+// Created:    Fri Apr 11 09:00:48 2008
+// Author:     Peter KURNEV
+//             <pkv@irinox>
+
+
+#include <XBRepMesh.ixx>
+#include <BRepMesh_PluginMacro.hxx>
+#include <BRepMesh_IncrementalMesh.hxx>
+
+//=======================================================================
+//function : Discret
+//purpose  : 
+//=======================================================================
+Standard_Integer XBRepMesh::Discret(const TopoDS_Shape& theShape,
+                                   const Standard_Real theDeflection,
+                                   const Standard_Real theAngle,
+                                   BRepMesh_PDiscretRoot& theAlgo)
+{
+  Standard_Integer iErr;
+  //
+  iErr=0;
+  theAlgo=new BRepMesh_IncrementalMesh;
+  theAlgo->SetDeflection(theDeflection);
+  theAlgo->SetAngle(theAngle);
+  theAlgo->SetShape(theShape);
+
+  return iErr;
+}
+DISCRETPLUGIN(XBRepMesh)