|
|
Send to fast :-(
> -------8<------------------------------------
> #macro CenterText(txt)
> #local minTxt = min_extent(txt);
> #local maxTxt = max_extent(txt);
> translate -(minTxt + (maxTxt - minTxt) / 2)
> #end
>
> #macro CenterText(txt)
Make it:
#macro GetCenterOfText(txt)
> #local minTxt = min_extent(txt);
> #local maxTxt = max_extent(txt);
> (minTxt + (maxTxt - minTxt) / 2)
> #end
>
> difference
> {
> // Planet
> cylinder
> {
> 0, -logoThickness*y, 1
> rotate 90*x
> }
> object
> {
> logoText
> // CenterText(logoText)
> translate <-CenterText(logoText).x, -0.5, -logoThickness>
Make it:
translate <-GetCenterOfText(logoText).x, -0.5, -logoThickness>
> }
> pigment { color logoColor }
> }
> ------------------------------------8<-------
Sorry.
Post a reply to this message
|
|