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:
23
src/XBRepMesh/XBRepMesh.cdl
Executable file
23
src/XBRepMesh/XBRepMesh.cdl
Executable 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
30
src/XBRepMesh/XBRepMesh.cxx
Executable 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)
|
Reference in New Issue
Block a user