|
|
I have macros for rounded_box, rounded_cylinder, and
rounded_cylinder_section, for both CSG and isosurface.
I need help with the rounded_cylinder_section, isosurface.
I only need from >0 to 180 degrees sections
(I know this has no rounding yet)
How do I make my second cut at an angle? Hints?
isosurface{
function {
max(
sqrt(pow(x,2)+pow(z,2))-Radius+Block_gap,
abs(y-Height/2)-Height/2+Block_gap, // cylinder height
abs(z-Radius/2)-Radius/2+Block_gap, // my reference edge
abs(x-Radius/2)-Radius/2+Block_gap // wrong except for 90 degrees
)
+Block_surface_iso_noise(x,y,z)
}
contained_by { box { <-Radius,0,-Radius>, <Radius,Height,Radius> } }
}
The bottom right of the second image wants to be 120 degrees each.
Stephen S
Post a reply to this message
Attachments:
Download 'stone_blocks_csg.png' (733 KB)
Download 'stone_blocks_isosurface.png' (776 KB)
Preview of image 'stone_blocks_csg.png'
Preview of image 'stone_blocks_isosurface.png'
|
|