CascadeStudio icon indicating copy to clipboard operation
CascadeStudio copied to clipboard

Cylinder of same radius having different radius during visualization

Open lokitkhemka opened this issue 3 years ago • 0 comments

When, I was running the following code:

function DrawCylinder(Center, Radius, Length, Angle,  Direction)
{
    let shape = Cylinder(Radius, Length, false);
    shape = Rotate(Direction, Angle,shape, false);
    shape = Translate(Center, shape, false);
    return shape
}
let scale = 2.0;
let Radius = Slider("Radius", 0.65 , 0.5 , 1.0);

let RefPipe = DrawCylinder([0,0,0], Radius *scale, 4*scale,0, [1,0,0]);
let Pipe1 = DrawCylinder([8*scale,75*scale,8*scale], Radius *scale, 4*scale, -90, [1,0,0]);
let Pipe2 = DrawCylinder([8*scale,79*scale,8*scale], Radius *scale, 12*scale, 0, [1,0,0]);
let Pipe3 = DrawCylinder([8*scale,79*scale,20*scale], Radius *scale, 37*scale, 90, [1,0,0]);

Pipe2 has a vastly different radius than rest of the cylinders. This is on google chrome.

lokitkhemka avatar Jul 15 '22 06:07 lokitkhemka