Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Alex.S on March 09, 2017, 12:10:31 PM

Title: Generators limited by Sp Mat ID don't join.
Post by: Alex.S on March 09, 2017, 12:10:31 PM
A little something I came across recently.

If you use spline mat id to limit a generator, then the edges between the types wont match at the joins unless they are completely straight.

This is a little bit annoying obviously, as if your generating along the spline you probably want them to join up?

Simple box on a spline with two mat ids below, obviously in practice I'm using much more complicated geometry which can only be done on separate generators.

Title: Re: Generators limited by Sp Mat ID don't join.
Post by: Michal KarmazĂ­n on March 10, 2017, 01:00:04 PM
Hi,

As mentioned in this "Drop curb problem on curved line (http://forum.itoosoft.com/index.php?topic=3109.msg12020#msg12020)" tightly related post: "Unfortunately this is a limitation when using the Generator > Limit to ID feature on curved splines. Internally each spline section is considered separate so it cannot compute the curves required to create a continuous deformation where the two IDs adjoin."

Building the style in a slightly different way would be recommendable in this case. Like using the Conditional Operator (http://docs.itoosoft.com/display/RAILCLONE/Operators#Operators-Conditional) where you can set the Material ID (there are multiple modes available - Equal / Not / Greater / Less / Multiple of) taking in mind, that "in order for this to work all the vertices within a spline section with the same ID should be either curve or bezier, with corner or bezier-corner reserved to mark a material ID change".

Hope that helps.

Best regards,
Title: Re: Generators limited by Sp Mat ID don't join.
Post by: Alex.S on March 10, 2017, 06:38:10 PM
You lose significant functionality by doing it there though. Although it may work OK, I'll investigate, it's not something that can be fixed in the future by the sounds of it?

Couldn't you basically do something similar to the padding instead? So it pads out the other parts? Probably not high priority I guess :(