POV-Ray : Newsgroups : povray.newusers : Units of measure : Units of measure Server Time
4 Nov 2024 13:04:15 EST (-0500)
  Units of measure  
From: Alan Smith
Date: 26 Aug 2003 09:57:13
Message: <3f4b6739$1@news.povray.org>
Am I correct that POV-Ray does not support units of measurement
ie (mm, cm, m, km, in, ft etc)?

Wouldn't it be nice if POV allowed something like :-
box { <-2cm, -1cm, 10mm>,  <2cm, 1cm, 1cm> }

This would lead to more readable code, greater ease of 'real world' scene
modelling with mixed sizes of objects and, most importantly, greater scope
for sharing objects from other people who generously donate their source.

At the moment I achieve this by using suitable declares and coding as :-
box { <-2*cm, -1*cm, 10*mm>,  <2*cm, 1*cm, 1*cm> }


Which goes a long way to meeting my needs, but it still does not do anything
for supporting portability of coded objects between scene files.

This would surely be a simple modification to the parser and would still
leave the ability for people to work in a 'unit-less' fashion if they like?

Alan Smith.


Post a reply to this message

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