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

0026664: Triangulating a very small polygon fails

Parameter for adaptive computation of minimal 2D meshing precision added in BRepMesh_IncrementalMesh API.
Corresponding option -adaptive added in DRAW command

All meshing parameters are collected in structure, BRepMesh_FastDiscret::Parameters, which is now used to define and manipulate parameters of the algorithm.
This commit is contained in:
pdn
2015-09-08 18:51:33 +03:00
committed by bugmaster
parent 6b84c3f7db
commit e71669c6e5
16 changed files with 309 additions and 362 deletions

View File

@@ -28,30 +28,6 @@ public:
//! Destructor
Standard_EXPORT virtual ~BRepMesh_DiscretRoot();
//! Setup linear deflection.
inline void SetDeflection(const Standard_Real theDeflection)
{
myDeflection = theDeflection;
}
//! Returns linear deflection.
inline Standard_Real Deflection() const
{
return myDeflection;
}
//! Setup angular deflection.
inline void SetAngle(const Standard_Real theAngle)
{
myAngle = theAngle;
}
//! Returns angular deflection.
inline Standard_Real Angle() const
{
return myAngle;
}
//! Set the shape to triangulate.
inline void SetShape(const TopoDS_Shape& theShape)
{
@@ -94,8 +70,6 @@ protected:
Standard_EXPORT virtual void init();
Standard_Real myDeflection;
Standard_Real myAngle;
TopoDS_Shape myShape;
Standard_Boolean myIsDone;
};