For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Repeated cut operation is slowing down over time

Durgesh's picture

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 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's picture

Hello everyone,

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

Please reply, I am stuck with this :(