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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / BRepExtrema_DistShapeShape uses infinite memory

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
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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