Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

BRepExtrema_DistShapeShape uses infinite memory

BRepExtrema_DistShapeShape uses infinite memory
Frank Zurheide 2012/10/21 21:34

After importing an IGES file I realized that BRepExtrema_DistShapeShape "crashes" (at least I have not enough memory and I think OCC should never use >6BG for that method). So I isolated the two shapes for tests and stored them in shape29.brep and shape44.brep. First I thought, that some shape healing should help, but the IGES import did that already. Changes of the deflection and other parameters in BRepExtrema_DistShapeShape are also no real help.

I used OpenCASCADE version 6.5.3, but had the same problems with 6.5.0 on a linux machine.

Can anybody reproduce that behaviour? Any suggestions? Any work-around, patches? Every input is welcome

Here some jump-start code:

char filenameA[] = "shape29.brep";
char filenameB[] = "shape44.brep";

result = BRepTools::Read( aShape, filenameA, aBuilder );
result = BRepTools::Read( bShape, filenameB, aBuilder );

BRepExtrema_DistShapeShape distSS( aShape, bShape );
// never reached :-(
std::cout << "finished computation of distance" << std::endl;
std::cout << " distance = " << distSS.Value() << std::endl;

You have to be logged in to download the attached file
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map