SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => SimCity 4 General Discussion => General Custom Content Discussion => Topic started by: 131080 on March 01, 2010, 11:44:56 AM

Title: Evenly contract and/or expand a line object?
Post by: 131080 on March 01, 2010, 11:44:56 AM
Hi all,

Is it possible to evenly contract and/or expand a line object? If so, how can it be achieved? See the example picture for what I mean, the black line being the original shape, the red line evenly contracted and the green line expanded.

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fwww.131080.com%2Fimg%2Fexample001.gif&hash=4adf11a58152713d8c3d7debed079f326aaf5ab0)

Thanks!

Regards,
131080
Title: Re: Evenly contract and/or expand a line object?
Post by: Victor01 on March 01, 2010, 12:14:27 PM
Of course you can.
Use the "scale" tool:

here you got an image of the symbol (taken from 3dsMax and not Gmax... but the tool is the same)
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fwww.gomediazine.com%2Fwp-content%2Fimages%2F2009%2F09%2F3d_scale.jpg&hash=6ab0f6d43fa5951a43d5ff71a91d5e97d0b94b54)
Title: Re: Evenly contract and/or expand a line object?
Post by: Diggis on March 01, 2010, 11:52:27 PM
Victor... what you are proposing would scale the whole thing evenly from the centre, not from the existing lines.  That would give a different result... I'm not able to demonstrate now, but the sides would be further out than the ends.

What 131080 is looking for is an offset (as it's called in AutoCAD) and the only way I can think to do it would be to use an edit spline and the numeric input to do it evenly.
Title: Re: Evenly contract and/or expand a line object?
Post by: callagrafx on March 02, 2010, 01:37:39 AM
In Max, if you select the line and click on the + icon in the modifier stack, you should see 3 sub-object types....vertex, segment and spline.  Select spline and scroll down to the geometry section of the rolldown and look for "outline".  This will create a new spline offset perfectly either positive or negative.  If you don't want the original spline as well, simply select and delete it.  It should be the same in Gmax if I remember correctly...
Title: Re: Evenly contract and/or expand a line object?
Post by: 131080 on March 02, 2010, 12:26:49 PM
Yep, that did the trick! Thanks for the tip callagrafx!

Cheers,
Pjotr