mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
31 lines
803 B
C++
Executable File
31 lines
803 B
C++
Executable File
// 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)
|