Hi Jose,
I understand that you are trying to generate a 3D model by subtracting one cylinder from another. [SB2] The current limitation with 'addvoid' requires that one model must be completely inside the other. However, the current constraint might be restricting the subtraction operation you are attempting.
To address this, I recommend referring to the documentation for a more detailed explanation of the 'addvoid' function and its constraints https://www.mathworks.com/help/pde/ug/discretegeometry.addvoid.html
Regarding a solution, I have an alternative approach that could help achieve the desired model. The following code provides a potential solution for your 3D model creation:
r1 = 0.05;
r2 = 0.06;
r3 = 0.2;
h=0.075;
h1=0.05;
% disk with smaller radius
gm1 = multicylinder([r2 r1],h1,'Void',[0,1]);
% disk with large radius. set Zoffset to place the disk below gm1
gm = multicylinder(r3,h-h1, 'Zoffset',-(h-h1));
figure;
pdegplot(gm,'FaceAlpha',0.7)
hold on;
pdegplot(gm1,'FaceAlpha',0.7)
hold off;
This alternative method offers a workaround to the current limitation, allowing you to achieve the subtractive operation between the cylinders and generate the intended 3D model.
I Hope this helps!
