####################################################################################################
#
# Invoking X3D model self-test:
#
#   $ python l_rib11.py
#
# Python package x3d.py package is available on PyPI for import.
#   This approach simplifies Python X3D deployment and use.
#   https://pypi.org/project/x3d
#
# Installation:
#       pip install x3d
# or
#       python -m pip install x3d
#
# Developer options for loading x3d package in other Python programs:
#
#    from x3d import *  # preferred approach, terser source that avoids x3d.* class prefixes
#
# or
#    import x3d         # traditional way to subclass x3d package, all classes require x3d.* prefix,
#                       # but python source is very verbose, for example x3d.Material x3d.Shape etc.
#                       # X3dToPython.xslt stylesheet insertPackagePrefix=true supports this option.
#
# Project home page:    # X3D Python Scene Access Interface Library (X3DPSAIL)
#                       # https://www.web3d.org/x3d/stylesheets/python/python.html
# Conversion generator: # https://www.web3d.org/x3d/stylesheets/X3dToPython.xslt
#
####################################################################################################

from x3d import *

newModel=X3D(profile='Interactive',version='4.0',
  head=head(
    children=[
    meta(content='l_rib11.x3d',name='title'),
    meta(content='rib cage or thoracic cage is endoskeletal enclosure in thorax that comprises the ribs, vertebral column and sternum, which protect vital organs of thoracic cavity',name='description'),
    meta(content='Don Brutzman, Joe Williams, John Carlson, Damon Hernandez',name='creator'),
    meta(content='Don Brutzman',name='translator'),
    meta(content='5 December 2013',name='created'),
    meta(content='5 March 2026',name='translated'),
    meta(content='23 April 2026',name='modified'),
    meta(content='originals/lrib11.x3d',name='reference'),
    meta(content='https://en.wikipedia.org/wiki/Rib_cage',name='reference'),
    meta(content='https://en.wikipedia.org/wiki/List_of_bones_of_the_human_skeleton',name='reference'),
    meta(content='usage examples https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Medical',name='reference'),
    meta(content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit',name='generator'),
    meta(content='X3D Tidy, https://www.web3d.org/x3d/stylesheets/X3dTidy.html',name='generator'),
    meta(content='https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Bones/l_rib11.x3d',name='identifier'),
    meta(content='../license.html',name='license')]),
  Scene=Scene(
    children=[
    WorldInfo(title='l_rib11.x3d'),
    Background(skyColor=[(0.858824,1,0.94902)]),
    Comment('user hover lights bone and reveals description, user selection/deselection temporarily binds/unbinds close-up hidden viewpoint'),
    TouchSensor(DEF='UserTouchSensor',description='bone l_rib11'),
    Transform(DEF='l_rib11',translation=(0.0769,1.2273,-0.0517),
      children=[
      BooleanToggle(DEF='UserTouchState'),
      ROUTE(fromField='isActive',fromNode='UserTouchSensor',toField='set_boolean',toNode='UserTouchState'),
      Viewpoint(DEF='HiddenViewpoint',nearDistance=0.001,position=(0,0,0.2),retainUserOffsets=True,
        navigationInfo=NavigationInfo(transitionType=["ANIMATE"],type=["EXAMINE"])),
      ROUTE(fromField='toggle',fromNode='UserTouchState',toField='set_bind',toNode='HiddenViewpoint'),
      DirectionalLight(DEF='HiddenLight',ambientIntensity=1,color=(0.1,0.1,1),on=False),
      ROUTE(fromField='toggle',fromNode='UserTouchState',toField='on',toNode='HiddenLight'),
      Transform(DEF='CenterOfRotationForJoint',visible=False,
        children=[
        Comment('insert computations for joint center of rotation here'),
        Inline(DEF='AxesDisplay',description='RGB display axes showing XYZ direction in local coordinate system',url=["AxesDisplay.x3d"],visible=False)]),
      ROUTE(fromField='toggle',fromNode='UserTouchState',toField='visible',toNode='CenterOfRotationForJoint'),
      Shape(
        appearance=Appearance(
          material=Material(DEF='BoneMaterial',ambientIntensity=0.965,diffuseColor=(1,0.9765,0.8667),shininess=0.05,specularColor=(0.349,0.349,0.349))),
        geometry=IndexedFaceSet(DEF='l_rib11_geometry',coordIndex=[0,1,2,-1,1,3,2,-1,4,5,6,-1,6,7,4,-1,8,9,10,-1,11,10,9,-1,11,12,10,-1,13,14,15,-1,15,16,13,-1,17,18,19,-1,17,20,18,-1,21,22,23,-1,21,24,22,-1,25,26,27,-1,27,28,25,-1,29,30,31,-1,32,33,34,-1,34,35,32,-1,36,37,38,-1,39,40,41,-1,40,36,41,-1,42,43,44,-1,45,46,47,-1,47,48,45,-1,49,50,51,-1,51,52,49,-1,53,54,55,-1,55,56,53,-1,57,58,59,-1,57,60,58,-1,61,62,54,-1,54,63,61,-1,21,49,64,-1,49,52,64,-1,65,24,37,-1,24,66,37,-1,22,67,44,-1,22,68,67,-1,69,70,71,-1,69,72,70,-1,36,73,41,-1,36,38,73,-1,55,54,62,-1,62,74,55,-1,75,76,77,-1,20,78,79,-1,28,79,25,-1,80,71,26,-1,71,70,26,-1,33,78,81,-1,33,79,78,-1,82,83,84,-1,84,85,82,-1,45,86,87,-1,86,27,87,-1,45,48,88,-1,82,85,89,-1,85,75,89,-1,90,91,92,-1,91,93,92,-1,94,95,29,-1,96,29,97,-1,82,98,83,-1,82,99,98,-1,100,101,102,-1,102,98,100,-1,7,103,104,-1,7,105,103,-1,106,107,108,-1,107,109,108,-1,110,111,112,-1,19,102,17,-1,102,14,17,-1,111,113,112,-1,111,114,113,-1,115,116,117,-1,116,118,117,-1,119,120,121,-1,120,122,121,-1,44,67,42,-1,42,123,124,-1,42,125,43,-1,55,126,58,-1,87,26,70,-1,70,127,87,-1,27,26,87,-1,128,77,129,-1,130,131,132,-1,130,133,131,-1,29,95,97,-1,30,29,134,-1,20,17,78,-1,135,99,82,-1,82,89,135,-1,13,136,78,-1,78,17,13,-1,137,138,121,-1,137,139,138,-1,140,141,142,-1,141,143,142,-1,144,145,146,-1,144,147,145,-1,9,8,147,-1,8,148,147,-1,149,106,150,-1,149,107,106,-1,151,152,109,-1,151,153,152,-1,109,8,108,-1,109,152,8,-1,154,108,10,-1,108,8,10,-1,11,9,144,-1,9,147,144,-1,7,6,155,-1,155,105,7,-1,156,157,158,-1,159,160,161,-1,161,136,159,-1,162,163,156,-1,156,135,162,-1,98,164,100,-1,165,162,89,-1,162,135,89,-1,83,98,19,-1,98,102,19,-1,166,167,168,-1,168,34,166,-1,84,83,18,-1,83,19,18,-1,169,170,29,-1,29,96,169,-1,130,132,171,-1,66,69,37,-1,69,38,37,-1,124,172,42,-1,67,173,42,-1,174,175,40,-1,40,176,174,-1,145,177,146,-1,145,178,177,-1,165,179,167,-1,179,168,167,-1,39,117,180,-1,39,115,117,-1,15,101,112,-1,112,113,15,-1,101,15,14,-1,14,102,101,-1,159,155,160,-1,159,105,155,-1,159,16,103,-1,103,105,159,-1,158,135,156,-1,158,99,135,-1,29,31,94,-1,29,170,134,-1,181,182,45,-1,45,88,181,-1,76,75,85,-1,47,46,57,-1,46,45,87,-1,130,20,91,-1,130,18,20,-1,84,171,183,-1,183,85,84,-1,93,79,28,-1,28,184,93,-1,171,132,183,-1,161,81,136,-1,81,78,136,-1,89,75,77,-1,176,39,180,-1,176,40,39,-1,125,185,43,-1,185,186,43,-1,44,23,22,-1,21,64,66,-1,66,24,21,-1,47,57,59,-1,60,55,58,-1,60,56,55,-1,125,42,172,-1,187,87,127,-1,187,46,87,-1,188,43,186,-1,41,115,39,-1,184,27,86,-1,184,28,27,-1,123,42,173,-1,49,21,23,-1,23,188,49,-1,65,68,22,-1,22,24,65,-1,63,189,190,-1,190,61,63,-1,13,17,14,-1,143,4,142,-1,191,192,193,-1,193,194,191,-1,195,1,0,-1,195,196,1,-1,197,198,199,-1,197,200,198,-1,3,201,202,-1,202,203,3,-1,204,202,205,-1,204,206,202,-1,207,198,208,-1,198,207,209,-1,200,202,206,-1,203,202,200,-1,3,210,201,-1,1,210,3,-1,211,205,196,-1,211,204,205,-1,198,191,199,-1,198,209,191,-1,212,200,197,-1,212,203,200,-1,211,195,192,-1,211,196,195,-1,199,194,213,-1,199,191,194,-1,153,197,214,-1,153,212,197,-1,2,215,0,-1,215,2,151,-1,192,216,193,-1,192,195,216,-1,194,217,218,-1,217,194,193,-1,201,205,202,-1,201,210,205,-1,4,219,5,-1,4,143,219,-1,220,189,63,-1,185,189,220,-1,221,61,190,-1,221,222,61,-1,223,65,224,-1,223,68,65,-1,49,186,50,-1,188,186,49,-1,190,123,221,-1,123,190,124,-1,86,225,184,-1,225,86,226,-1,179,116,168,-1,118,116,179,-1,227,228,126,-1,228,227,229,-1,230,187,127,-1,231,187,230,-1,185,172,189,-1,185,125,172,-1,174,224,175,-1,174,222,224,-1,189,124,190,-1,189,172,124,-1,72,52,230,-1,72,64,52,-1,44,188,23,-1,44,43,188,-1,130,84,18,-1,130,171,84,-1,183,76,85,-1,183,232,76,-1,169,131,133,-1,131,169,96,-1,92,170,90,-1,92,134,170,-1,182,31,226,-1,182,94,31,-1,97,181,233,-1,181,97,95,-1,232,132,234,-1,183,132,232,-1,47,228,129,-1,228,47,59,-1,45,226,86,-1,182,226,45,-1,235,158,157,-1,158,235,164,-1,111,140,114,-1,236,140,111,-1,237,238,239,-1,238,237,141,-1,167,162,165,-1,240,162,167,-1,163,241,242,-1,163,243,241,-1,146,244,138,-1,177,244,146,-1,178,245,246,-1,245,178,145,-1,213,218,247,-1,194,218,213,-1,240,163,162,-1,240,243,163,-1,227,176,180,-1,227,74,176,-1,72,127,70,-1,72,230,127,-1,60,46,187,-1,57,46,60,-1,229,180,117,-1,180,229,227,-1,115,35,116,-1,115,248,35,-1,76,129,77,-1,129,76,47,-1,90,130,91,-1,130,90,133,-1,89,179,165,-1,179,89,77,-1,240,249,243,-1,250,249,240,-1,167,250,240,-1,167,166,250,-1,164,99,158,-1,99,164,98,-1,250,160,249,-1,161,160,250,-1,110,164,235,-1,164,110,100,-1,163,157,156,-1,163,242,157,-1,249,155,251,-1,160,155,249,-1,111,235,252,-1,235,111,110,-1,253,242,120,-1,242,253,157,-1,251,6,254,-1,155,6,251,-1,114,103,113,-1,114,104,103,-1,253,255,252,-1,253,256,255,-1,137,122,254,-1,137,121,122,-1,140,104,114,-1,104,140,142,-1,256,257,255,-1,256,258,257,-1,258,259,257,-1,258,260,259,-1,139,146,138,-1,139,144,146,-1,237,143,141,-1,237,12,143,-1,259,261,262,-1,260,261,259,-1,262,106,263,-1,262,150,106,-1,246,261,178,-1,246,264,261,-1,148,247,245,-1,148,265,247,-1,8,265,148,-1,8,152,265,-1,265,213,247,-1,265,214,213,-1,152,214,265,-1,152,153,214,-1,216,107,149,-1,215,107,216,-1,264,218,217,-1,246,218,264,-1,147,245,145,-1,147,148,245,-1,264,262,261,-1,264,150,262,-1,260,178,261,-1,177,178,260,-1,259,263,239,-1,259,262,263,-1,219,144,139,-1,219,11,144,-1,258,177,260,-1,244,177,258,-1,239,257,259,-1,257,239,238,-1,219,137,5,-1,219,139,137,-1,244,256,119,-1,244,258,256,-1,255,238,236,-1,255,257,238,-1,5,254,6,-1,5,137,254,-1,120,256,253,-1,120,119,256,-1,252,236,111,-1,252,255,236,-1,241,254,122,-1,251,254,241,-1,252,157,253,-1,157,252,235,-1,16,113,103,-1,16,15,113,-1,243,251,241,-1,249,251,243,-1,161,166,81,-1,161,250,166,-1,34,81,166,-1,33,81,34,-1,184,92,93,-1,184,225,92,-1,234,48,232,-1,234,88,48,-1,118,77,128,-1,77,118,179,-1,248,32,35,-1,32,248,80,-1,88,233,181,-1,234,233,88,-1,73,80,248,-1,73,71,80,-1,59,126,228,-1,126,59,58,-1,41,248,115,-1,248,41,73,-1,187,56,60,-1,231,56,187,-1,224,37,175,-1,37,224,65,-1,217,150,264,-1,149,150,217,-1,246,247,218,-1,246,245,247,-1,119,138,244,-1,119,121,138,-1,242,122,120,-1,242,241,122,-1,236,141,140,-1,236,238,141,-1,154,239,263,-1,239,154,237,-1,108,263,106,-1,108,154,263,-1,107,151,109,-1,107,215,151,-1,112,100,110,-1,100,112,101,-1,131,234,132,-1,131,233,234,-1,117,128,229,-1,118,128,117,-1,131,97,233,-1,96,97,131,-1,95,182,181,-1,182,95,94,-1,134,225,30,-1,92,225,134,-1,170,133,90,-1,170,169,133,-1,232,47,76,-1,232,48,47,-1,80,25,32,-1,80,26,25,-1,72,66,64,-1,69,66,72,-1,91,79,93,-1,20,79,91,-1,74,174,176,-1,74,62,174,-1,231,53,56,-1,231,51,53,-1,38,71,73,-1,38,69,71,-1,173,68,223,-1,68,173,67,-1,51,220,53,-1,220,51,50,-1,222,62,61,-1,222,174,62,-1,63,53,220,-1,53,63,54,-1,230,51,231,-1,51,230,52,-1,229,129,228,-1,129,229,128,-1,126,74,227,-1,126,55,74,-1,36,175,37,-1,175,36,40,-1,116,34,168,-1,116,35,34,-1,79,32,25,-1,32,79,33,-1,226,30,225,-1,30,226,31,-1,223,123,173,-1,223,221,123,-1,222,223,224,-1,221,223,222,-1,50,185,220,-1,50,186,185,-1,16,136,13,-1,16,159,136,-1,11,143,12,-1,143,11,219,-1,10,237,154,-1,10,12,237,-1,193,149,217,-1,216,149,193,-1,7,142,4,-1,104,142,7,-1,215,195,0,-1,216,195,215,-1,151,212,153,-1,151,2,212,-1,199,214,197,-1,214,199,213,-1,209,192,191,-1,209,211,192,-1,3,212,2,-1,3,203,212,-1,209,204,211,-1,209,207,204,-1,196,210,1,-1,196,205,210,-1,200,208,198,-1,200,206,208,-1,207,206,204,-1,207,208,206,-1],creaseAngle=1.571,
          coord=Coordinate(DEF='l_rib11_coordinate',point=[(0.0522,-0.0392,0.0520),(0.0525,-0.0389,0.0528),(0.0519,-0.0387,0.0521),(0.0524,-0.0386,0.0528),(0.0277,0.0003,-0.0277),(0.0285,0.0017,-0.0255),(0.0098,0.0131,-0.0415),(0.0077,0.0126,-0.0437),(0.0520,-0.0249,0.0200),(0.0491,-0.0183,0.0088),(0.0486,-0.0197,0.0074),(0.0444,-0.0118,-0.0026),(0.0435,-0.0134,-0.0043),(-0.0227,0.0248,-0.0531),(-0.0232,0.0246,-0.0541),(-0.0145,0.0185,-0.0531),(-0.0129,0.0201,-0.0524),(-0.0377,0.0301,-0.0508),(-0.0452,0.0314,-0.0496),(-0.0379,0.0312,-0.0522),(-0.0443,0.0298,-0.0464),(-0.0570,0.0262,-0.0232),(-0.0562,0.0271,-0.0224),(-0.0570,0.0266,-0.0229),(-0.0559,0.0271,-0.0225),(-0.0496,0.0291,-0.0387),(-0.0510,0.0292,-0.0362),(-0.0507,0.0297,-0.0381),(-0.0498,0.0293,-0.0399),(-0.0515,0.0308,-0.0444),(-0.0515,0.0294,-0.0418),(-0.0520,0.0298,-0.0403),(-0.0491,0.0295,-0.0384),(-0.0479,0.0294,-0.0410),(-0.0440,0.0334,-0.0399),(-0.0461,0.0332,-0.0374),(-0.0534,0.0333,-0.0246),(-0.0547,0.0301,-0.0225),(-0.0534,0.0305,-0.0246),(-0.0502,0.0361,-0.0279),(-0.0536,0.0343,-0.0246),(-0.0500,0.0357,-0.0278),(-0.0570,0.0290,-0.0217),(-0.0573,0.0280,-0.0230),(-0.0568,0.0279,-0.0221),(-0.0529,0.0322,-0.0386),(-0.0529,0.0324,-0.0381),(-0.0504,0.0351,-0.0406),(-0.0509,0.0348,-0.0411),(-0.0578,0.0267,-0.0244),(-0.0582,0.0276,-0.0249),(-0.0585,0.0277,-0.0259),(-0.0581,0.0272,-0.0259),(-0.0583,0.0290,-0.0255),(-0.0586,0.0304,-0.0251),(-0.0577,0.0317,-0.0278),(-0.0578,0.0302,-0.0279),(-0.0527,0.0334,-0.0379),(-0.0554,0.0325,-0.0318),(-0.0523,0.0338,-0.0376),(-0.0558,0.0313,-0.0317),(-0.0575,0.0316,-0.0234),(-0.0571,0.0324,-0.0241),(-0.0583,0.0302,-0.0244),(-0.0571,0.0260,-0.0243),(-0.0553,0.0298,-0.0217),(-0.0557,0.0270,-0.0232),(-0.0565,0.0293,-0.0216),(-0.0558,0.0297,-0.0216),(-0.0552,0.0274,-0.0261),(-0.0538,0.0279,-0.0308),(-0.0532,0.0281,-0.0304),(-0.0561,0.0268,-0.0270),(-0.0510,0.0316,-0.0285),(-0.0556,0.0333,-0.0260),(-0.0457,0.0364,-0.0447),(-0.0478,0.0363,-0.0437),(-0.0445,0.0379,-0.0416),(-0.0369,0.0290,-0.0492),(-0.0486,0.0290,-0.0413),(-0.0505,0.0295,-0.0358),(-0.0363,0.0290,-0.0486),(-0.0352,0.0356,-0.0535),(-0.0375,0.0331,-0.0535),(-0.0464,0.0339,-0.0490),(-0.0467,0.0349,-0.0476),(-0.0510,0.0298,-0.0387),(-0.0528,0.0318,-0.0381),(-0.0517,0.0343,-0.0420),(-0.0326,0.0372,-0.0524),(-0.0475,0.0289,-0.0464),(-0.0452,0.0296,-0.0463),(-0.0502,0.0289,-0.0425),(-0.0489,0.0290,-0.0416),(-0.0533,0.0315,-0.0401),(-0.0529,0.0328,-0.0429),(-0.0508,0.0322,-0.0472),(-0.0518,0.0330,-0.0454),(-0.0217,0.0284,-0.0561),(-0.0196,0.0301,-0.0555),(-0.0125,0.0214,-0.0555),(-0.0145,0.0185,-0.0540),(-0.0234,0.0251,-0.0553),(-0.0011,0.0150,-0.0490),(0.0069,0.0110,-0.0444),(0.0004,0.0163,-0.0474),(0.0511,-0.0285,0.0178),(0.0529,-0.0324,0.0283),(0.0504,-0.0278,0.0182),(0.0524,-0.0317,0.0284),(-0.0016,0.0138,-0.0521),(0.0048,0.0086,-0.0473),(-0.0038,0.0130,-0.0513),(-0.0037,0.0134,-0.0502),(0.0045,0.0087,-0.0459),(-0.0465,0.0380,-0.0338),(-0.0440,0.0385,-0.0369),(-0.0469,0.0386,-0.0340),(-0.0447,0.0389,-0.0372),(0.0363,0.0076,-0.0267),(0.0214,0.0172,-0.0415),(0.0358,0.0079,-0.0260),(0.0213,0.0173,-0.0405),(-0.0573,0.0306,-0.0221),(-0.0576,0.0303,-0.0225),(-0.0576,0.0286,-0.0231),(-0.0544,0.0333,-0.0311),(-0.0558,0.0294,-0.0318),(-0.0467,0.0374,-0.0384),(-0.0480,0.0363,-0.0393),(-0.0466,0.0312,-0.0490),(-0.0505,0.0325,-0.0476),(-0.0491,0.0336,-0.0476),(-0.0483,0.0305,-0.0483),(-0.0507,0.0290,-0.0430),(-0.0174,0.0317,-0.0549),(-0.0222,0.0249,-0.0522),(0.0326,0.0056,-0.0255),(0.0454,-0.0010,-0.0106),(0.0433,-0.0041,-0.0101),(0.0247,-0.0030,-0.0301),(0.0350,-0.0115,-0.0168),(0.0262,-0.0012,-0.0289),(0.0389,-0.0090,-0.0123),(0.0473,-0.0094,-0.0017),(0.0532,-0.0142,0.0114),(0.0497,-0.0073,-0.0014),(0.0511,-0.0164,0.0101),(0.0539,-0.0227,0.0228),(0.0557,-0.0320,0.0301),(0.0542,-0.0271,0.0194),(0.0527,-0.0356,0.0410),(0.0532,-0.0292,0.0303),(0.0542,-0.0333,0.0425),(0.0465,-0.0224,0.0062),(0.0019,0.0172,-0.0464),(-0.0059,0.0271,-0.0542),(0.0077,0.0195,-0.0501),(-0.0081,0.0258,-0.0554),(-0.0117,0.0207,-0.0506),(-0.0102,0.0219,-0.0496),(-0.0210,0.0255,-0.0507),(-0.0147,0.0331,-0.0536),(-0.0026,0.0283,-0.0522),(-0.0105,0.0240,-0.0563),(-0.0305,0.0381,-0.0508),(-0.0318,0.0335,-0.0482),(-0.0297,0.0377,-0.0496),(-0.0415,0.0387,-0.0400),(-0.0486,0.0303,-0.0479),(-0.0481,0.0289,-0.0464),(-0.0471,0.0338,-0.0485),(-0.0578,0.0295,-0.0229),(-0.0568,0.0303,-0.0216),(-0.0563,0.0332,-0.0231),(-0.0553,0.0332,-0.0225),(-0.0543,0.0345,-0.0250),(0.0504,-0.0076,-0.0023),(0.0542,-0.0147,0.0108),(-0.0423,0.0392,-0.0405),(-0.0508,0.0364,-0.0282),(-0.0529,0.0333,-0.0428),(-0.0533,0.0316,-0.0395),(-0.0475,0.0346,-0.0476),(-0.0502,0.0294,-0.0404),(-0.0578,0.0283,-0.0240),(-0.0580,0.0274,-0.0243),(-0.0562,0.0300,-0.0318),(-0.0576,0.0270,-0.0238),(-0.0582,0.0299,-0.0238),(-0.0575,0.0311,-0.0230),(0.0562,-0.0352,0.0561),(0.0557,-0.0375,0.0553),(0.0570,-0.0344,0.0441),(0.0582,-0.0317,0.0456),(0.0544,-0.0388,0.0541),(0.0539,-0.0385,0.0544),(0.0542,-0.0356,0.0553),(0.0557,-0.0353,0.0561),(0.0559,-0.0349,0.0562),(0.0542,-0.0362,0.0551),(0.0532,-0.0378,0.0526),(0.0537,-0.0368,0.0532),(0.0534,-0.0370,0.0544),(0.0549,-0.0368,0.0541),(0.0542,-0.0377,0.0534),(0.0544,-0.0359,0.0541),(0.0555,-0.0358,0.0548),(0.0552,-0.0354,0.0548),(0.0559,-0.0357,0.0561),(0.0532,-0.0381,0.0526),(0.0549,-0.0372,0.0554),(0.0532,-0.0367,0.0542),(0.0574,-0.0311,0.0460),(0.0557,-0.0318,0.0444),(0.0530,-0.0361,0.0408),(0.0554,-0.0359,0.0427),(0.0575,-0.0305,0.0316),(0.0585,-0.0270,0.0341),(0.0402,-0.0075,-0.0099),(-0.0581,0.0286,-0.0246),(-0.0567,0.0321,-0.0221),(-0.0567,0.0325,-0.0224),(-0.0562,0.0320,-0.0215),(-0.0558,0.0325,-0.0217),(-0.0512,0.0293,-0.0411),(-0.0515,0.0297,-0.0396),(-0.0522,0.0352,-0.0294),(-0.0505,0.0351,-0.0362),(-0.0489,0.0367,-0.0350),(-0.0576,0.0284,-0.0284),(-0.0580,0.0289,-0.0284),(-0.0485,0.0359,-0.0439),(-0.0517,0.0335,-0.0454),(-0.0507,0.0345,-0.0449),(0.0034,0.0174,-0.0521),(0.0247,-0.0031,-0.0309),(0.0406,-0.0162,-0.0067),(0.0354,-0.0117,-0.0178),(0.0411,-0.0166,-0.0074),(-0.0141,0.0325,-0.0516),(0.0111,0.0220,-0.0461),(0.0116,0.0220,-0.0473),(-0.0028,0.0280,-0.0508),(0.0461,-0.0017,-0.0115),(0.0562,-0.0210,0.0246),(0.0572,-0.0219,0.0243),(0.0575,-0.0261,0.0342),(-0.0481,0.0330,-0.0348),(-0.0067,0.0247,-0.0491),(-0.0176,0.0284,-0.0502),(0.0069,0.0199,-0.0452),(0.0113,0.0118,-0.0468),(0.0178,0.0153,-0.0448),(0.0164,0.0150,-0.0400),(0.0297,-0.0006,-0.0302),(0.0345,0.0044,-0.0292),(0.0399,-0.0089,-0.0164),(0.0440,-0.0051,-0.0144),(0.0462,-0.0144,-0.0058),(0.0494,-0.0118,-0.0042),(0.0534,-0.0187,0.0084),(0.0514,-0.0209,0.0076),(0.0474,-0.0230,0.0057),(0.0562,-0.0252,0.0208),(0.0549,-0.0272,0.0321)])))])])
)

### X3D model conversion complete ###

####################################################################################################
# Self-test diagnostics
####################################################################################################

print('Self-test diagnostics for l_rib11.py:')
if        metaDiagnostics(newModel): # built-in utility method in X3D class
    print(metaDiagnostics(newModel)) # display meta info, hint, warning, error, TODO values in this model
# print('check newModel.XML() serialization...')
newModelXML= newModel.XML() # test export method XML() for exceptions during export
newModel.XMLvalidate()
# print(newModelXML) # diagnostic

try:
#   print('check newModel.VRML() serialization...')
    newModelVRML=newModel.VRML() # test export method VRML() for exceptions during export
    # print(prependLineNumbers(newModelVRML)) # debug
    print("Python-to-VRML export of VRML output successful", flush=True)
except Exception as err: # usually BaseException
    # https://stackoverflow.com/questions/18176602/how-to-get-the-name-of-an-exception-that-was-caught-in-python
    print("*** Python-to-VRML export of VRML output failed:", type(err).__name__, err)
    if newModelVRML: # may have failed to generate
        print(prependLineNumbers(newModelVRML, err.lineno))

try:
#   print('check newModel.JSON() serialization...')
    newModelJSON=newModel.JSON() # test export method JSON() for exceptions during export
#   print(prependLineNumbers(newModelJSON)) # debug
    print("Python-to-JSON export of JSON output successful (under development)")
except Exception as err: # usually SyntaxError
    print("*** Python-to-JSON export of JSON output failed:", type(err).__name__, err)
    if newModelJSON: # may have failed to generate
        print(prependLineNumbers(newModelJSON,err.lineno))

print("python l_rib11.py load and self-test diagnostics complete.")
