|
|
High!
Martin schrieb:
> Ah, so there are another design problem. The StrightRail() object is
> not centered , and that's what you're seeign. I propose you to center it:
>
> #macro StraightRail(le) // le: length in meters
> [...]
> object { StraightOuterRounding }
> object { StraightOuterRounding translate x*0.59 }
> texture { T_Bright_Metal } translate -0.3*x //<---- center it
> }
> #end
>
> Then the BendRail don't need to be off-centre:
> #macro BendRail(rd, ang)
> [...]
> object { BendOuterRounding translate y*0.495 }
> object { BendInnerRounding translate y*0.495 }
> texture { T_Bright_Metal } #if(!RevEng)
> #if (ang >= 0)
> translate x*rd //<--------- also centered
> #else
> translate -x*rd
> #end #end
> }
> #end
>
> And now there is no need to compute this movement
>
> [...]
> #case (1)
> object
> {
> BendRail(RailElements[i][2], RailElements[i][1])
> rotate y*d
> translate trans
> /*
> #if (RailElements[i][1] >= 0 )
> #declare diff = 0.3;
> #else
> #declare diff = -0.3;
> #end
> */ //<-- simply eliminate this term from the equations.
> [...]
> #break
> #end
Works great!
Muchas gracias, Martin!
Prepare to find your name in the city of Port Whatmough one day... or on
any other moon or planet in that stellar system!
See you in Khyberspace - www.khyberspace.de !
Yadgar
Post a reply to this message
|
|