POV-Ray : Newsgroups : povray.advanced-users : Clipping a bicubic patch : Clipping a bicubic patch Server Time
16 May 2024 04:22:43 EDT (-0400)
  Clipping a bicubic patch  
From: MidiPlay
Date: 12 Feb 2015 22:20:01
Message: <web.54dd6cbace7470f4797245b80@news.povray.org>
I've got a surface made up of bicubic patches, and I want to clip it to a box
region so that I can see the cross-section of the surface.  I've tried using
"clipped_by{ box { <0, 0, 0>, <100, 100, 100> } }" and "bounded_by{ box { <0, 0,
0>, <100, 100, 100> } }", but they have no effect, the entire surface is still
visible.  For example, the following should not be visible at all, but it is:

bicubic_patch
{
    type 1
    flatness 0
    < -450, 0, -347>, < -449, 0, -115>, < -450, 0, 115>, < -450, 0, 347>,
    < -453, 0, -347>, < -453, 0, -115>, < -453, 0, 115>, < -453, 0, 347>,
    < -456, 0, -347>, < -456, 0, -115>, < -456, 0, 115>, < -456, 0, 347>,
    < -460, 0, -347>, < -460, 0, -115>, < -460, 0, 115>, < -460, 0, 347>
    texture
    {
        pigment
        {
            rgbf <0.278,0.5,0.25,     1>
        }
    }
    interior_texture
    {
        pigment
        {
            rgbf <0.5,0.235,0.157,    1>
        }
    }
    clipped_by{ box { <0, 0, 0>, <100, 100, 100> } }
}

Any suggestions?


Post a reply to this message

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