|
![](/i/fill.gif) |
John VanSickle <evi### [at] hotmail com> wrote:
> Try this:
>
> #local txtL=text { ttf FontName, "A",1,0 }
>
> object { txtL
> translate -(min_extent(txtL)+max_extent(txtL))/2
> }
looks good, my code is a little dirtier:
----code
#macro WoodBlock(Letter, BlockColor)
#declare LetObj = text {
ttf "AdLibRg_.ttf", Letter, .2, 0
rotate 90*y
scale 1.5
texture {
pigment { BlockColor }
finish { phong 1 }
normal { Norm_W }
}
}
#declare Center = max_extent(LetObj)-min_extent(LetObj);
difference {
object {
IW_Plank_RoundW(18, 2, 2, 2, 4, 2, 0.1, 0.004, P_CM_IW_01, Fin_W, Norm_W,
1)
translate -z-y
}
object {
LetObj
translate <-max_extent(LetObj).x , -Center.y , Center.z>/2
}
}
#end
----code
I used Christoph's IsoWood macros btw
Post a reply to this message
|
![](/i/fill.gif) |