BowlerStudio icon indicating copy to clipboard operation
BowlerStudio copied to clipboard

Cylinder creation disalignment

Open JansenSmith opened this issue 2 years ago • 1 comments

using code // make a gently rounded cylinder CSG top = new RoundedCylinder(radius,height) .cornerRadius(10)// sets the radius of the corner .toCSG()// converts it to a CSG tor display

// make a subtly rounded cylinder CSG bottom = new RoundedCylinder(radius,height/2) .cornerRadius(2)// sets the radius of the corner .toCSG()// converts it to a CSG tor display

// union the two CSG body = top.union(bottom)

Expected Outcome: Two aligned and analogous rounded cylinders with no seam.

Actual Outcome: Two cylinders that don't mesh well and have a seam: image

see: https://github.com/Halloween2020TheChild/Zoltar/commit/8fe8117ac535315aaa5e749f83c8dc7891b7e52c#diff-e30852a13801f01807cb22b62a8344799a3d9137a43768a1acc639499032ba26

JansenSmith avatar Jul 24 '23 22:07 JansenSmith

I suspect the stair-step method for creating the cylendars is not correctly calculating the largest cylendars radius. This would be in JCSG, i think @JansenSmith should be able to fix it.

madhephaestus avatar Jul 26 '23 15:07 madhephaestus