POV-Ray : Newsgroups : povray.binaries.images : office supplies - ink bottle : office supplies - ink bottle Server Time
4 Nov 2024 14:22:20 EST (-0500)
  office supplies - ink bottle  
From: Jim Charter
Date: 9 Feb 2008 05:25:57
Message: <47ad7fb5@news.povray.org>
This is a sdl generated mesh object.  The idea was to transition from a 
flat-sided body to a round cross-sectioned neck. ( Variations on that 
transition are the design of many ink bottles.)

The macro must be fed x-y coordinates to describe the vertical profile 
of the bottle in the form of an array. This array is submitted to Cris 
Colefax's spline macro to produce a spline for the profile. The 
horizontal cross-sections are produced from a macro based on a few 
parameters like number of sides, size of bevel and tension. This macro 
also outputs an array of points.  The diameter of each cross-section is 
derived from the profile spline.  The cross-section array is used to 
produce and store a cross-section spline.  A final macro walks these 
cross-section splines and generates the mesh triangles.

At present the macro will not stand alone, the code must be tweeked for 
each bottle to accomplish the transition from a sided scrossection to a 
rounded cross-section.


Post a reply to this message


Attachments:
Download 'inkbottle.0009.jpg' (66 KB)

Preview of image 'inkbottle.0009.jpg'
inkbottle.0009.jpg


 

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