CAD-based joining point planning