mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028661: BRepOffsetAPI_MakePipeShell throws an exception Standard_NoSuchObject: NCollection_DataMap::Find
1. Clearance of fields of class has been added to the method BRepFill_PipeShell::Prepare(). 2. Calculation of error on surfaces has been corrected in the method GeomFill_Sweep::BuildKPart(). 3. New Draw command "errorsweep" has been added to check the error reached on the surfaces built by BRepOffsetAPI_MakePipeShell algorithm.
This commit is contained in:
@@ -856,6 +856,24 @@ static Standard_Integer gensweep(Draw_Interpretor&,
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : errorsweep
|
||||
//purpose : returns the summary error on resulting surfaces
|
||||
// reached by Sweep
|
||||
//=======================================================================
|
||||
static Standard_Integer errorsweep(Draw_Interpretor& di,
|
||||
Standard_Integer, const char**)
|
||||
{
|
||||
if (!Sweep->IsDone())
|
||||
{
|
||||
di << "Sweep is not done\n";
|
||||
return 1;
|
||||
}
|
||||
Standard_Real ErrorOnSurfaces = Sweep->ErrorOnSurface();
|
||||
di << "Tolerance on surfaces = " << ErrorOnSurfaces << "\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// simulsweep
|
||||
//=======================================================================
|
||||
@@ -998,6 +1016,9 @@ void BRepTest::SweepCommands(Draw_Interpretor& theCommands)
|
||||
theCommands.Add("gensweep", "gensweep res subshape_of_profile",
|
||||
__FILE__,gensweep,g);
|
||||
|
||||
theCommands.Add("errorsweep", "errorsweep: returns the summary error on resulting surfaces reached by Sweep",
|
||||
__FILE__,errorsweep,g);
|
||||
|
||||
theCommands.Add("simulsweep", "simulsweep r [n] [option]"
|
||||
__FILE__,simulsweep,g);
|
||||
theCommands.Add("geompipe", "geompipe r spineedge profileedge radius [byACR [byrotate]]"
|
||||
|
Reference in New Issue
Block a user