microelly2 wrote: ↑
Thu Feb 07, 2019 1:12 pm
I think what is needed is a method which connects the two objects by calculating of some extra middle segments.
One particular thought I had: Would it be possible to force the connector through a template defined by an edge / spline? That is, let's assume the connector is generally flat between two objects. But I want it to transition to a "U" shape for a certain distance between those objects. Is it reasonable to think I could take an edge/wire/spline/arc and use it as a template to control the cross-sectional shape of the connector as it transitions between the poles on the two objects?
There's also one other issue. This approach requires two known sets of points. In some cases, one set will not be known.
Think of a highway with a ditch. A ditch consists of three elements: A foreslope extending down from the road edge (typically 4:1 (H:V)), a ditch bottom (2 feet wide), and a backslope rising up to meet the ground (typically 3:1).
Assuming the existing terrain is *above* the ditch bottom, the ditch backslope will rise at a fixed rate from the outer edge of the ditch bottom. The surface of the backslope will be generally planar, only curving as the ditch bottom curves (horizontally). The top of the slope will not conform to the shape of the terrain. Rather, it will retain it's planar shape, and simply intersect the terrain surface at various points along it's length.
In order to solve that, I assume the following will need to be done:
1. Sweep the ditch backslope edge along the outer edge of the ditch bottom
2. Compute a boolean intersection between the resulting backslope surface and the existing terrain
3. Use the resulting ruled edge to generate a surface between the terrain and the outer edge of the ditch bottom (or just trim the existing backslope surface to the edge of intersection...)
Sorry for the complete lack of pictures...