Skip to content

v0.0.31 Odd I am cutting with a box to see the inside structure of the subtraction #51

Description

@rluiten

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.

Image

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions