mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0026118: Implement FastSewing algorithm
1. Develop special sewing algorithm. 2. DRAW-command "fastsewing" has been created (see help for detail information). 3. BRepLib::EnsureNormalConsistency() method has been added (see help for detail information). 4. DRAW-command correctnormals has been created (see help for detail information). Test cases for this issue. Correction of elapsed time in test-cases
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <Bnd_Box.hxx>
|
||||
#include <BRepBndLib.hxx>
|
||||
#include <BRepLib.hxx>
|
||||
|
||||
|
||||
//epa Memory leaks test
|
||||
@@ -1589,6 +1590,31 @@ Standard_Integer triedgepoints(Draw_Interpretor& di, Standard_Integer nbarg, con
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : correctnormals
|
||||
//purpose : Corrects normals in shape triangulation nodes (...)
|
||||
//=======================================================================
|
||||
Standard_Integer correctnormals (Draw_Interpretor& theDI,
|
||||
Standard_Integer /*theNArg*/,
|
||||
const char** theArgVal)
|
||||
{
|
||||
TopoDS_Shape S = DBRep::Get(theArgVal[1]);
|
||||
|
||||
//Use "correctnormals shape"
|
||||
|
||||
|
||||
if(!BRepLib::EnsureNormalConsistency(S))
|
||||
{
|
||||
theDI << "Normals have not been changed!\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
theDI << "Some corrections in source shape have been made!\n";
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
void MeshTest::Commands(Draw_Interpretor& theCommands)
|
||||
//=======================================================================
|
||||
@@ -1623,6 +1649,8 @@ void MeshTest::Commands(Draw_Interpretor& theCommands)
|
||||
theCommands.Add("onetriangulation","onetriangulation name",__FILE__, onetriangulation, g);
|
||||
theCommands.Add("triepoints", "triepoints shape1 [shape2 ...]",__FILE__, triedgepoints, g);
|
||||
|
||||
theCommands.Add("correctnormals", "correctnormals shape",__FILE__, correctnormals, g);
|
||||
|
||||
#if 0
|
||||
theCommands.Add("extrema","extrema ",__FILE__, extrema, g);
|
||||
theCommands.Add("vb","vb ",__FILE__, vb, g);
|
||||
|
Reference in New Issue
Block a user