struct def for seg and pt