mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0025039: Improvement of code structure of general and supporting tools implemented in BRepMesh
Removed CDL declarations; Data collections are replaced by NCollections; Small code refactoring. Remove definition of BRepMesh class. Code refactoring of BRepMesh_IncrementalMesh. Function BRepMesh_Write storing BRepMesh_DataStructureOfDelaun to BRep file is added for debug needs. Static method BRepMesh_GeomTool::IntLinLin has been added to eliminate code duplications in BRepMesh_Dealun and BRepMesh_CircleTool. BRepMesh_CircleTool simplified method to find circumcircle. Fix merging conflicts Remove redundant function Fix compilation warning on MacOS Revert changes occurred during rebase Resolved merging conflicts Use parallel flag with BRepMesh_FastDiscret Test cases for issue CR25039_2
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include <Poly_Triangle.hxx>
|
||||
#include <Poly_Triangulation.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <BRepMesh.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
@@ -52,7 +51,7 @@
|
||||
#include <Vrml_NormalBinding.hxx>
|
||||
#include <Vrml_Separator.hxx>
|
||||
#include <Vrml_NormalBinding.hxx>
|
||||
|
||||
#include <BRepMesh_IncrementalMesh.hxx>
|
||||
|
||||
//=========================================================================
|
||||
// function: Add
|
||||
@@ -98,8 +97,11 @@ void VrmlConverter_ShadedShape::Add( Standard_OStream& anOStream,
|
||||
theRequestedDeflection = aDrawer->MaximalChordialDeviation();
|
||||
}
|
||||
|
||||
if (!BRepTools::Triangulation(aShape,theRequestedDeflection))
|
||||
BRepMesh::Mesh(aShape,theRequestedDeflection); // computes and save the triangulation in the face.
|
||||
if (!BRepTools::Triangulation(aShape,theRequestedDeflection))
|
||||
{
|
||||
// computes and save the triangulation in the face.
|
||||
BRepMesh_IncrementalMesh(aShape,theRequestedDeflection);
|
||||
}
|
||||
|
||||
|
||||
Handle(Poly_Triangulation) T;
|
||||
|
Reference in New Issue
Block a user