POV-Ray : Newsgroups : povray.general : How to use Rounded Prism for objects with void? : How to use Rounded Prism for objects with void? Server Time
25 Apr 2024 20:55:35 EDT (-0400)
  How to use Rounded Prism for objects with void?  
From: Kima
Date: 28 Jan 2020 13:20:00
Message: <web.5e307b1e33de45afecc0fada0@news.povray.org>
The macro given at http://www.slimeland.com/misc/roundedprism.inc is very handy
for building a rounded prism. However, I cannot create any rounded prism if the
object has a void within like
https://www.povray.org/documentation/images/tutorial/subshape.png

How can I create a rounded prism for an object like

prism {
    linear_sweep
    cubic_spline
    0,  // sweep the following shape from here ...
    1,  // ... up through here
    18, // the number of points making up the shape ...
    <3,-5>, <3,5>, <-5,0>, <3, -5>, <3,5>, <-5,0>,//sub-shape #1
    <2,-4>, <2,4>, <-4,0>, <2,-4>, <2,4>, <-4,0>, //sub-shape #2
    <1,-3>, <1,3>, <-3,0>, <1, -3>, <1,3>, <-3,0> //sub-shape #3
    pigment { Green }
  }


Post a reply to this message

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