<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Mechanism xmlns="http://www.dmg-lib.org/mechanism" dmglib_MecID="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dmg-lib.org/mechanism http://dmg-lib.org/dmglib/schemas/mechanism.xsd">

  <Shapes xmlns="http://www.dmg-lib.org/shapes">
    <Shape id="SwivelJoint.2D.fixed" scale="0.02">
      <Line id="SwivelJoint.2D.fixed..line1" x1="-0.75" x2="-1.75" y1="-0.75" y2="-3"/>
      <Line id="SwivelJoint.2D.fixed..line2" x1="0.75" x2="1.75" y1="-0.75" y2="-3"/>
      <Line id="SwivelJoint.2D.fixed..line3" x1="-2.5" x2="2.5" y1="-3" y2="-3"/>
      <Line id="SwivelJoint.2D.fixed..line4" x1="-2.25" x2="-0.75" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line5" x1="-1.125" x2="0.375" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line6" x1="0" x2="1.5" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line7" x1="1.125" x2="2.625" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line8" x1="2.25" x2="3.75" y1="-3" y2="-4.25"/>
      <Circle cx="0" cy="0" filled="false" id="SwivelJoint.2D.fixed..circle" radius="1"/>
    </Shape>
    <Shape id="SwivelJoint.3D">
      <Cylinder height="0.1" id="SwivelJoint.3D..cyl" location="xy" origin="0,0,-0.05" radius="0.0125"/>
    </Shape>
    <Shape id="SwivelJoint.2D.normal" scale="0.02">
      <Circle cx="0" cy="0" filled="false" id="SwivelJoint.2D.normal..circle" radius="1"/>
    </Shape>
    <Shape id="Bar.2D.normal">
      <Line id="Bar.2D.normal..line" x1="0" x2="1" y1="0" y2="0"/>
      
      <![CDATA[
      function transform(sx,sy)
      {
          line.x1 = line.x1 * sx;
          line.y1 = line.y1 * sy;
          line.x2 = line.x2 * sx;
          line.y2 = line.y2 * sy;
      }
]]>
    </Shape>
    <Shape id="Bar.3D">
      <Cylinder height="0.05" id="Bar.3D..cyl1" location="xy" origin="0,0,-0.025" radius="0.025"/>
      <Cylinder height="0.05" id="Bar.3D..cyl2" location="xy" origin="1,0,-0.025" radius="0.025"/>
      <Cylinder height="0.05" id="Bar.3D..cyl3" location="xy" origin="0,0,-0.025" radius="0.0125"/>
      <Cylinder height="0.05" id="Bar.3D..cyl4" location="xy" origin="1,0,-0.025" radius="0.0125"/>
      <Box height="0.05" id="Bar.3D..box" length="1" location="yz" origin="0,0,0" width="0.05"/>
      <Union geometry1="Bar.3D..box" geometry2="Bar.3D..cyl1" id="Bar.3D..union1"/>
      <Union geometry1="Bar.3D..union1" geometry2="Bar.3D..cyl2" id="Bar.3D..union2"/>
      <Difference geometry1="Bar.3D..union2" geometry2="Bar.3D..cyl3" id="Bar.3D..diff1"/>
      <Difference geometry1="Bar.3D..diff1" geometry2="Bar.3D..cyl4" id="Bar.3D..diff2"/>
      
      <![CDATA[
      function transform(sx,sy)
      {
          box.length = box.length * sx;
          cyl1.originx = cyl1.originx * sx;
          cyl2.originx = cyl2.originx * sx;
          cyl3.originx = cyl3.originx * sx;
          cyl4.originx = cyl4.originx * sx;
      }
]]>
    </Shape>
    <Shape id="SlidingJoint.2D.normal" scale="0.02">
      <Line id="SlidingJoint.2D.normal..line1" x1="-2.5" x2="2.5" y1="-1.25" y2="-1.25"/>
      <Line id="SlidingJoint.2D.normal..line2" x1="-2.5" x2="2.5" y1="1.25" y2="1.25"/>
      <Line id="SlidingJoint.2D.normal..line3" x1="-2.5" x2="-2.5" y1="1.25" y2="-1.25"/>
      <Line id="SlidingJoint.2D.normal..line4" x1="2.5" x2="2.5" y1="1.25" y2="-1.25"/>
      <Line id="SlidingJoint.2D.normal..line5" x1="-2.5" x2="2.5" y1="-1.25" y2="1.25"/>
      <Line id="SlidingJoint.2D.normal..line6" x1="-2.5" x2="2.5" y1="1.25" y2="-1.25"/>
    </Shape>
    <Shape id="Point.2D.normal" scale="0.019">
      <Circle cx="0" cy="0" filled="true" id="Point.2D.normal..circle" radius="1"/>
    </Shape>
  </Shapes>

  <ComponentSpaces xmlns="http://www.dmg-lib.org/componentspaces">
    <ComponentSpace id="cspace1" type="planar">
      <Positions>
        <Position id="pos1" x="-0.592477" y="-0.177194"/>
        <Position id="pos2" x="-0.885634" y="0.320491"/>
        <Position id="pos3" x="-0.592477" y="-0.177194"/>
        <Position id="pos4" x="-0.885634" y="0.320491"/>
        <Position id="pos5" x="-0.885634" y="0.320491"/>
        <Position id="pos6" x="0.920477" y="-0.315343"/>
        <Position id="pos7" x="0.537794" y="-0.180621"/>
        <Position id="pos8" x="0.537794" y="-0.180621"/>
      </Positions>
      <Scalars>
        <Scalar id="scalar1" value="-0.177194"/>
        <Scalar id="scalar2" value="0"/>
        <Scalar id="scalar3" value="0.320491"/>
        <Scalar id="scalar4" value="0"/>
        <Scalar id="scalar5" value="2.10312"/>
        <Scalar id="scalar6" value="-0.600428"/>
        <Scalar id="scalar7" value="0.577608"/>
        <Scalar id="scalar8" value="-0.338497"/>
        <Scalar id="scalar9" value="-0.00821294"/>
        <Scalar id="scalar10" value="1.91476"/>
        <Scalar id="scalar11" value="-0.00821294"/>
        <Scalar id="scalar12" value="-0.338497"/>
        <Scalar id="scalar13" value="-0.180621"/>
        <Scalar id="scalar14" value="0"/>
      </Scalars>
      <Elements>
        <Bar fixed="false" id="sBar20">
          <Point fixed="false" id="sBar20.pt1" posRef="pos3"/>
          <Point fixed="false" id="sBar20.pt2" posRef="pos4"/>
          <Line fixed="false" id="sBar20.axis">
            <Param fixed="false" id="sBar20.axis.dir" scalarRef="scalar5"/>
            <Param fixed="false" id="sBar20.axis.offs" scalarRef="scalar6"/>
          </Line>
          <Param fixed="true" id="sBar20.length" scalarRef="scalar7"/>
        </Bar>
        <Bar fixed="false" id="sBar21">
          <Point fixed="false" id="sBar21.pt1" posRef="pos5"/>
          <Point fixed="false" id="sBar21.pt2" posRef="pos6"/>
          <Line fixed="false" id="sBar21.axis">
            <Param fixed="false" id="sBar21.axis.dir" scalarRef="scalar8"/>
            <Param fixed="false" id="sBar21.axis.offs" scalarRef="scalar9"/>
          </Line>
          <Param fixed="true" id="sBar21.length" scalarRef="scalar10"/>
        </Bar>
      </Elements>
      <Couplings>
        <SwivelJoint fixed="true" id="swj15">
          <Point fixed="true" id="swj15.pt" posRef="pos1"/>
          <Line fixed="false" id="swj15.line">
            <Param fixed="false" id="swj15.line.dir" scalarRef="scalar2"/>
            <Param fixed="false" id="swj15.line.offs" scalarRef="scalar1"/>
          </Line>
        </SwivelJoint>
        <SwivelJoint fixed="false" id="swj16">
          <Point fixed="false" id="swj16.pt" posRef="pos2"/>
          <Line fixed="false" id="swj16.line">
            <Param fixed="false" id="swj16.line.dir" scalarRef="scalar4"/>
            <Param fixed="false" id="swj16.line.offs" scalarRef="scalar3"/>
          </Line>
        </SwivelJoint>
        <SwivelJoint fixed="true" id="swj17">
          <Point fixed="true" id="swj17.pt" posRef="pos8"/>
          <Line fixed="false" id="swj17.line">
            <Param fixed="false" id="swj17.line.dir" scalarRef="scalar14"/>
            <Param fixed="false" id="swj17.line.offs" scalarRef="scalar13"/>
          </Line>
        </SwivelJoint>
        <SlidingJoint fixed="false" id="slj11">
          <Point fixed="false" id="slj11.pt" posRef="pos7"/>
          <Line fixed="false" id="slj11.axis">
            <Param fixed="false" id="slj11.axis.dir" scalarRef="scalar12"/>
            <Param fixed="false" id="slj11.axis.offs" scalarRef="scalar11"/>
          </Line>
        </SlidingJoint>
      </Couplings>
      <Connections>
        <PointConnection couplingPointRef="swj15.pt" elementPointRef="sBar20.pt1" id="pointcon1"/>
        <PointConnection couplingPointRef="swj16.pt" elementPointRef="sBar21.pt1" id="pointcon2"/>
        <PointConnection couplingPointRef="swj16.pt" elementPointRef="sBar20.pt2" id="pointcon3"/>
        <LineConnection couplingLineRef="slj11.axis" elementLineRef="sBar21.axis" id="linecon5"/>
        <CouplingConnection coupling1Ref="swj17" coupling2Ref="slj11" id="couplingcon4" role="SlidingSwivelJoint"/>
      </Connections>
    </ComponentSpace>
  </ComponentSpaces>

</Mechanism>
