POV-Ray : Newsgroups : povray.text.scene-files : Source code for bevelled box : Re: Source code for bevelled box Server Time
6 Oct 2024 08:06:51 EDT (-0400)
  Re: Source code for bevelled box  
From: John VanSickle
Date: 10 Oct 2000 21:19:13
Message: <39E3C12C.29AA9B11@erols.com>
Tor Olav Kristensen wrote:
> 
> Here's my "Total Overkill" code for calculating position of corners
> for a bevelled box.

If all you want to do is make a bevelled box, use the BevelBox()
macro from my Throughly Useful Macros file.

  http://users4.50megs.com/enphilistor/macs.htm

The macro intersects three boxes to produce the beveled box;
the code is much neater.

> // Scalar Triple Product of 3 vectors
> #macro S3Prod(v1, v2, v3)
> 
>   vdot(v1, vcross(v2, v3))
> 
> #end // macro S3Prod

This acutally produces the determinant of the matrix formed by the
three vectors.

Regards,
John
-- 
ICQ: 46085459


Post a reply to this message

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