blob: 03c761c25651169432f4d0a7fb92c20565689b4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)
|