[bfdf16]: / Body / AAUHuman / Trunk / SkullSeg.any

Download this file

69 lines (46 with data), 3.0 kB

  AnySeg SkullSeg = {
    
    AnyFolder &StdPar=..ModelParameters.Skull;
    
    AnyFunTransform3D &Scale =..ScalingTrunk.SkullSeg.ScaleFunction;
    
    r0=..SegmentsCervicalSpine.C1Seg.C1C0JntNode.sRel*..SegmentsCervicalSpine.C1Seg.Axes0'+..SegmentsCervicalSpine.C1Seg.r0; 
    
    AnyVar MassS = ..Scaling.MassScaling.Head.MassScale;
    
    AnyVar MassStandard = ..StandardParameters.HeadWithoutNeck.Mass;
    Mass = MassS*MassStandard;
    
    Jii = StdPar.Jii;
    
    /// The AnatomicalFrame of skull is different from the remaining spine model since the
    ///skull has it's own coordinate system relative to the c1 - c0 joint.
    AnyRefNode AnatomicalFrame = {};
    AnyRefNode MoCapMarkerFrameAMMR24 = {}; ///< For backwards Compatibility with AMMR 2.4 MoCap Marker protocols
    AnyRefNode& ScalingNode = AnatomicalFrame;
    AnyFunTransform3D& GeomScale = Scale;
    
    sCoM = Scale(StdPar.sCoM_pos);
    JaboutCoMOnOff = On;
    
    AnyRefNode C1C0JntNode = {sRel = .Scale(.StdPar.C1C0JntNode_pos); AnyDrawNodes DrwNode = {Visible ??=..DrwSurf.Visible; ScaleXYZ = {1,1,1}*0.003;RGB = {0, 1, 0};};};
    AnyRefNode NeckNode={sRel=.Scale(.StdPar.NeckNode_pos);};
    
    //Lumped Hyoid
    AnyRefNode LumpedHyoidT1C0NodeR = {sRel = .Scale(.StdPar.Right.LumpedHyoidT1C0Node_pos);};
    AnyRefNode LumpedHyoidT1C0NodeL = {sRel = .Scale(.StdPar.Left.LumpedHyoidT1C0Node_pos);};
    
    //Longus Colli nodes
    AnyRefNode LongusColliT1C0NodeR = {sRel = .Scale(.StdPar.Right.LongusColliT1C0Node_pos);};
    AnyRefNode LongusColliT1C0NodeL = {sRel = .Scale(.StdPar.Left.LongusColliT1C0Node_pos);};    
    
    //Longus cappitis nodes
    AnyRefNode LongusCapitisC0NodeR = {sRel = .Scale(.StdPar.Right.LongusCapitisC0Node_pos);};
    AnyRefNode LongusCapitisC0NodeL = {sRel = .Scale(.StdPar.Left.LongusCapitisC0Node_pos);};    
    
    //Splenius capitis nodes
    AnyRefNode SpleniusCapitisNodeR = {sRel = .Scale(.StdPar.Right.SpleniusCapitisNode_pos);};
    AnyRefNode SpleniusCapitisNodeL = {sRel = .Scale(.StdPar.Left.SpleniusCapitisNode_pos);}; 
    
    //Semispinalis capitis nodes
    AnyRefNode SemispinalisCapitisNodeR = {sRel = .Scale(.StdPar.Right.SemispinalisCapitisNode_pos);};
    AnyRefNode SemispinalisCapitisNodeL = {sRel = .Scale(.StdPar.Left.SemispinalisCapitisNode_pos);};
    
    //Longissimus capitis nodes
    AnyRefNode LongissimusCapitisNodeR = {sRel = .Scale(.StdPar.Right.LongissimusCapitisNode_pos);};
    AnyRefNode LongissimusCapitisNodeL = {sRel = .Scale(.StdPar.Left.LongissimusCapitisNode_pos);};

    AnyDrawSurf DrwSurf = {
      FileName = ...STL.FilenameSkull;
      RGB = ...ColorRef.Segments;
      AnyFunTransform3D &Scale =.Scale; 
      Opacity = Main.DrawSettings.BonesOpacity.Skull;
    };
    
    AnyRefNode TopOfHead = {sRel = .Scale(.StdPar.TopOfHead_pos);};
    
    AnyRefNode Right ={};
    AnyRefNode Left ={};    
    
  };