POV-Ray : Newsgroups : povray.binaries.scene-files : CSG Text : Re: CSG Text Server Time
2 Sep 2024 08:14:49 EDT (-0400)
  Re: CSG Text  
From: Weinzierl Stefan
Date: 11 Mar 2002 03:56:37
Message: <3C8C7107.7050705@t-online.de>
Theo

> Here are the sources for the CSG letters as in the p.b.images.
> 
> Regards, Theo


I've replaced the digit '1' with the following code, because it was a 
little bit to small...

Also I attached a macro(message, space) where strings can be handled 
very easy.

Stefan


// *** The digit 1. 
***********************************************************
#declare Digit_1_Width  = .7;
#declare Digit_1_Height = 2.4;
#declare Digit_1_Depth  = 0.4;
#declare Digit_1 =
  merge {
    // The standing right side.
    sphere { < 0.0, 2.0, 0.0> StdInnerRadius }
    cylinder { y*2.0, 0.0, StdInnerRadius}
    sphere { < 0.0, 0.0, 0.0> StdInnerRadius }

    // The small extention at the top left.
    merge {
       cylinder { 0.0, -y*0.5, StdInnerRadius }
       sphere { < 0.0, -0.5, 0.0> StdInnerRadius }

       rotate z*-45
       translate y*2.0
    }

    translate x*.3

    // Put the digit on the origin.
    translate <StdInnerRadius, StdInnerRadius, StdInnerRadius>
  }


Post a reply to this message


Attachments:
Download 'us-ascii' (5 KB)

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