Adding characteristic edge length parameter. EdgeSegmentWithinCube is still wrong.