1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

23
src/XBRepMesh/XBRepMesh.cdl Executable file
View File

@@ -0,0 +1,23 @@
-- File: XBRepMesh.cdl
-- Created: Fri Apr 11 08:54:31 2008
-- Author: Peter KURNEV
-- <pkv@irinox>
---Copyright: Matra Datavision 2008
package XBRepMesh
---Purpose:
uses
TopoDS,
BRepMesh
is
Discret(theShape : Shape from TopoDS;
theDeflection : Real from Standard;
theAngle : Real from Standard;
theAlgo:out PDiscretRoot from BRepMesh)
returns Integer from Standard;
end XBRepMesh;

30
src/XBRepMesh/XBRepMesh.cxx Executable file
View File

@@ -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)