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

0028089: Mesh - New algorithm for triangulation of 2d polygons

Added custom meshing core algorithm to generate base mesh using Delabella library,
which can be enabled via IMeshTools_Parameters::MeshAlgo option or CSF_MeshAlgo environment variable.

Do not fill cirles filter upon explicit initialization.
Call base postProcessMesh functionality after initialization of circles in BRepMesh_CustomDelaunayBaseMeshAlgo.

Added Vsprintf() wrapper for vsprintf() preserving C locale.
This commit is contained in:
oan
2019-07-10 13:04:25 +03:00
committed by bugmaster
parent 689dc3b1c9
commit f2006a6f19
30 changed files with 1923 additions and 68 deletions

View File

@@ -2,6 +2,7 @@ IMeshTools_Context.hxx
IMeshTools_CurveTessellator.hxx
IMeshTools_MeshAlgo.hxx
IMeshTools_MeshAlgoFactory.hxx
IMeshTools_MeshAlgoType.hxx
IMeshTools_MeshBuilder.hxx
IMeshTools_MeshBuilder.cxx
IMeshTools_ModelAlgo.hxx

View File

@@ -0,0 +1,25 @@
// Copyright (c) 2020 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _IMeshTools_MeshAlgoType_HeaderFile
#define _IMeshTools_MeshAlgoType_HeaderFile
//! Enumerates built-in meshing algorithms factories implementing IMeshTools_MeshAlgoFactory interface.
enum IMeshTools_MeshAlgoType
{
IMeshTools_MeshAlgoType_DEFAULT = -1, //!< use global default (IMeshTools_MeshAlgoType_Watson or CSF_MeshAlgo)
IMeshTools_MeshAlgoType_Watson = 0, //!< generate 2D Delaunay triangulation based on Watson algorithm (BRepMesh_MeshAlgoFactory)
IMeshTools_MeshAlgoType_Delabella, //!< generate 2D Delaunay triangulation based on Delabella algorithm (BRepMesh_DelabellaMeshAlgoFactory)
};
#endif

View File

@@ -16,6 +16,7 @@
#ifndef _IMeshTools_Parameters_HeaderFile
#define _IMeshTools_Parameters_HeaderFile
#include <IMeshTools_MeshAlgoType.hxx>
#include <Precision.hxx>
//! Structure storing meshing parameters
@@ -24,6 +25,7 @@ struct IMeshTools_Parameters {
//! Default constructor
IMeshTools_Parameters ()
:
MeshAlgo (IMeshTools_MeshAlgoType_DEFAULT),
Angle(0.5),
Deflection(0.001),
AngleInterior(-1.0),
@@ -47,6 +49,9 @@ struct IMeshTools_Parameters {
return 0.1;
}
//! 2D Delaunay triangulation algorithm factory to use
IMeshTools_MeshAlgoType MeshAlgo;
//! Angular deflection used to tessellate the boundary edges
Standard_Real Angle;