View Issue Details

IDProjectCategoryView StatusLast Update
0002044Open CASCADEOCCT:Modeling Algorithmspublic2006-06-29 09:15
ReportersklAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version5.1.0 
Summary0002044: Slow work of BRepLib::EncodeRegularity()
DescriptionDuring analysis of reading step files we have found, that many time is spent
for performing BRepLib::EncodeRegularity().

We believe that it is possible to accelerate this process. After changing of
creation in static function tgtfaces() we receive accelaration. For example
file on bm4_sd_conn_a.stp this function required 41 sec before the modifications
and takes only 1 second after it.

In this function there was:
  Handle(BRepAdaptor_HSurface) HS1 = new
BRepAdaptor_HSurface(F1);
During such creation BRepAdaptor_HSurface BRepAdaptor_Surface was initialised.
But constructor of BRepAdaptor_Surface has a boolean key. If this key == true
during initialisation method BRepTools::UVBounds() was performed. By default
this value of key is used.
For performing tgtfaces() results of ::UVBounds() are not used but this method
is spent many time. We suggest in first create BRepAdaptor_Surface with key ==
false and only after that create BRepAdaptor_HSurface using created
BRepAdaptor_Surface.
Possible variant:
  BRepAdaptor_Surface aBAS1(F1,Standard_False);
  Handle(BRepAdaptor_HSurface) HS1 = new
BRepAdaptor_HSurface(aBAS1);

We want to draw attention of BUG Master that same cases of unoptimal using of
adaptors may occur in other functions and methods.

Our fix of file BRepLib.cxx was attached.
TagsNo tags attached.
Test case number

Attached Files

  • BRepLib.cxx (51,976 bytes)

Activities

2003-03-14 09:05

 

BRepLib.cxx (51,976 bytes)

Issue History

Date Modified Username Field Change
2003-03-14 15:31 bugmaster CC => apv
2003-03-14 15:31 bugmaster Status new => resolved
2003-03-17 18:20 apv CC => aki
2003-03-26 12:42 aki Status resolved => tested
2003-04-07 17:40 bugmaster Status tested => closed
2003-04-07 17:40 bugmaster Resolution @0@ => fixed
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms