POV-Ray : Newsgroups : povray.general : Array of points for use with bicubic patch : Array of points for use with bicubic patch Server Time
29 Jul 2024 14:24:03 EDT (-0400)
  Array of points for use with bicubic patch  
From: D103
Date: 25 Apr 2011 09:05:01
Message: <web.4db5716483b8d732964acb270@news.povray.org>
I am attempting to make a curtain out of bicubic patches. I want to create an
array which contains all the points, which is easy enough, but I'm not sure how
to then use the points in the patches.

This is the array I intend to use:

#declare BPatchPoints = array[4][16] {
  { //points for first patch }
  { //points for second patch }
  { //points for third patch }
  { //points for fourth patch }

Also, I'm wondering if I could use while loops to generate the points, which
would make it easier to add randomness. Again, I'm not sure how to go about
doing this, except perhaps using the loop to generate the array as well?


D103


Post a reply to this message

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