POV-Ray : Newsgroups : povray.binaries.images : Rounded block section, isosurface equivalent : Rounded block section, isosurface equivalent Server Time
7 Nov 2024 04:53:47 EST (-0500)
  Rounded block section, isosurface equivalent  
From: StephenS
Date: 5 Sep 2016 15:06:20
Message: <57cdc22c@news.povray.org>
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'
stone_blocks_csg.png

Preview of image 'stone_blocks_isosurface.png'
stone_blocks_isosurface.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.