Spars type, a spar is defined by sparSegments that stretch between multiple sparPositions. The spar definition is very flexible in CPACS. Spars can start and end at any position of the wing, spars can have kinks at any position of the wing and spars can cross each other or merge.
At first the spar points (->sparPositions) have to be defined. Spar points are defined using the relative coordinates eta and xsi. Spar points do lay on wing middle plane.
Two or more spar points are connected to on spar segment (->sparSegments). Each spar segment can be seen as one spar. The spar geometry between two spar points is defined as a direct/straight connection in global coordinate system and not in eta xsi coordinates of the component segment. One spar point can be used by more than one spar, if e.g. two spars are merging. The detailed cross section of the spar is also defined with sparSegments.
Pleas find below a picture for an example definition of 3 spars in one wing, by using spar position points and spar segments: