Hi iToo,
This problem has been bending my noodle for many years. I have a feeling you will tell me this is still impossible but I want to believe. Please see attached screenshot.
I am using RC to distribute kerb, driveways and footpaths along a street, with a generator for each respectively, in one singled RC object. I'm open to separate them into multiple RC objects in necessary.
1. When I use this style, house locations are usually pre-determined and are marked by placing a vertex at the edge of the house lot, marked by X. The driveways are set as Corner segments along the Purple Line and are placed in the correct position to connect to future house models.
2. However, the kerb Generator needs to follow the Blue Line as kerb to footpath distance is not constant, and will usually curve into a corner where the Purple Line would chamfer instead.
The problem is that I need a way to inform the kerb Generator of the Purple vertex's location, at the point along the Blue line where it is at minimal distance to the vertex. This is so I can either switch out the kerb segments next to the driveway to a drop kerb, or substitute with nothing and attach the drop kerb to the driveway instead.
I keep thinking there could be some way to use an expression to calculate this, but I'm not advanced enough with the code to see a clear way to do it. If it exists, I would really appreciate if you could point me in the right direction or suggest another approach.
FYI, I can't afford to manually place vertexes on the Blue kerb line, this translates to many hours of work if rendering an entire estate, not to mention making it more complicated.
Can post Max 2022 scene if not sufficiently clear.