Cut a torus from another, then went to cut the to see interior shape was surprised.
The point upper bit i had expected to be removed, it is cut but its not removed.
It might be just be me missing something again.
Code.
import {
axis, circle, extrude, plane, rect,
revolve, rotate, sketch, subtract, translate,
} from 'fluidcad/core';
function makeTubeProfile() {
circle(20);
circle(10);
}
const a = axis('y', { offsetZ: 20 });
const ax = axis('x', { offsetZ: 20 });
sketch('yz', makeTubeProfile);
let t1;
t1 = revolve(a).new().name(' t1');
t1 = translate([0, 5, 0], t1);
sketch('yz', makeTubeProfile);
let t2;
t2 = revolve(a).new().name(' t2');
t2 = rotate(ax, 37, t2);
const o1 = subtract(t1, t2).name(' o1');
let cutter;
cutter = sketch(plane('xz', { offset: -2 }), () => {
rect(70, 120).centered();
});
cutter = extrude(20, cutter).new();
subtract(o1, cutter);
Cut a torus from another, then went to cut the to see interior shape was surprised.
The point upper bit i had expected to be removed, it is cut but its not removed.
It might be just be me missing something again.
Code.