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 / Repeated cut operation is slowing down over time

Repeated cut operation is slowing down over time

Repeated cut operation is slowing down over time
Durgesh 2012/10/28 14:37
Hello everyone,

I am a newbie to the world of openCascade, so please bear with my silly questions.

I am trying to carve out a circular ring on a surface of solid cube in small steps, the loop for doing that is as follows:

int Noperation = 90;
currentCube = rawMaterial->Shape();
for(int i = 0;i <= 360;i+=360/Noperation){
     globalX = Cx + R*cos(i*3.14/180);
     globalZ = Cz + R*sin(i*3.14/180);
     gp_Trsf aTrsfPipe1;
     TopLoc_Location newLocation(aTrsfPipe1);
     BRepAlgoAPI_Cut aCut1(currentCube,tube1);
     currentCube = aCut1.Shape();


The process starts very fast, but keep on going slow with the time, I checked the memory consumption and that also keeps on increasing with time. So, I suspect there is a case of memory leakage, and I don't know how to keep check on that.

Please advise!!!

Thanks & Regards,
Durgesh 2012/10/31 15:43
Hello everyone,

Am I not clear with my problem or the code snippet itself is not clear.

Please reply, I am stuck with this :(
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