#################################################################################################### # # Invoking X3D model self-test: # # $ python DolphinPose03.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. # #################################################################################################### from x3d import * newModel=X3D(profile='Interchange',version='3.0', head=head( children=[ meta(content='DolphinPose03.x3d',name='title'), meta(content='Third pose for bottlenose dolphin is curved downward, exported from Maya',name='description'), meta(content='Chris Lang',name='creator'), meta(content='1 August 2007',name='created'), meta(content='20 October 2019',name='modified'), meta(content='http://en.wikipedia.org/wiki/Dolphin',name='reference'), meta(content='https://savage.nps.edu/Savage/Biologics/Dolphin/DolphinPose03.x3d',name='identifier'), meta(content='X3D-Edit, https://savage.nps.edu/X3D-Edit',name='generator'), meta(content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit',name='generator'), meta(content='RawKee, http://rawkee.sourceforge.net',name='generator'), meta(content='../../license.html',name='license')]), Scene=Scene( children=[ WorldInfo(title='DolphinPose03.x3d'), Background(groundColor=[(1,1,1)],skyColor=[(1,1,1)]), Viewpoint(description='Dolphin at 2m',position=(0,0,2)), Transform(rotation=(0,1,0,1.57),scale=(0.1,0.1,0.1),translation=(0.12,-0.22,0), children=[ Shape( appearance=Appearance( material=Material(diffuseColor=(0,0.5,1))), geometry=IndexedFaceSet(coordIndex=[78,62,145,144,-1,160,82,39,-1,196,161,163,-1,167,164,166,-1,287,173,172,-1,183,298,181,-1,185,2,295,-1,327,77,186,-1,192,2,185,-1,23,70,194,195,-1,198,196,197,-1,197,196,199,-1,201,151,200,68,-1,202,149,152,-1,174,173,203,-1,204,207,206,-1,226,33,210,211,-1,215,13,212,214,-1,213,28,216,218,-1,217,29,220,-1,223,31,214,-1,221,213,218,224,-1,217,220,226,-1,227,32,222,-1,212,13,231,230,-1,236,38,71,235,-1,240,82,147,40,-1,241,18,37,-1,248,4,247,-1,255,251,250,-1,256,243,242,254,-1,46,253,264,-1,261,269,258,257,-1,259,48,255,262,-1,262,250,41,270,-1,264,42,272,-1,263,44,260,-1,258,269,256,-1,269,261,264,-1,271,50,262,-1,273,256,269,-1,274,271,270,-1,275,79,326,-1,76,54,191,-1,192,80,278,-1,279,76,22,-1,280,53,276,-1,281,335,277,-1,333,277,193,-1,162,58,282,-1,284,69,166,-1,196,198,161,-1,194,70,285,-1,289,65,177,-1,291,29,216,-1,320,292,293,-1,297,20,325,-1,300,15,298,183,-1,298,15,301,302,-1,302,64,303,173,-1,232,36,304,305,-1,307,60,69,306,-1,308,11,167,-1,496,485,72,-1,485,504,180,-1,310,19,311,-1,208,67,233,312,-1,173,14,314,203,-1,145,62,285,316,-1,313,35,322,-1,170,3,324,160,-1,162,282,324,-1,164,163,165,-1,182,74,176,73,-1,326,188,182,-1,326,75,275,-1,279,55,76,-1,55,327,76,-1,190,1,328,327,-1,288,63,329,-1,175,7,330,329,-1,205,27,330,-1,209,5,323,331,-1,195,0,198,-1,198,0,286,-1,75,193,275,-1,332,334,184,-1,191,54,335,-1,187,9,336,192,-1,290,66,337,-1,66,202,337,-1,10,39,238,-1,39,82,240,-1,58,78,148,-1,342,124,138,338,-1,143,353,101,-1,357,391,355,-1,361,358,359,-1,369,474,366,-1,296,16,386,-1,504,373,387,-1,481,375,374,-1,476,85,378,-1,380,137,499,-1,378,85,385,-1,388,131,23,387,-1,391,389,390,-1,391,390,392,-1,394,343,393,129,-1,345,395,348,-1,478,369,368,-1,401,397,398,-1,210,33,413,402,-1,405,13,215,403,-1,408,97,404,406,-1,98,407,409,-1,403,31,223,-1,406,404,411,412,-1,409,407,413,-1,410,32,227,-1,231,13,405,415,-1,132,100,420,419,-1,340,143,424,102,-1,37,18,425,-1,432,87,431,-1,105,426,440,437,-1,436,439,448,-1,445,455,442,441,-1,107,110,444,446,-1,103,433,446,447,-1,104,448,453,-1,443,108,449,-1,455,445,440,-1,442,455,448,-1,450,115,453,-1,446,113,457,-1,453,448,450,-1,455,440,447,-1,497,139,458,-1,118,498,384,-1,385,140,460,-1,461,141,505,-1,386,16,460,-1,498,465,462,-1,136,463,464,-1,459,117,464,-1,460,140,466,-1,386,460,467,-1,468,122,356,-1,359,130,469,-1,389,391,357,-1,472,131,388,-1,371,126,475,-1,408,98,478,-1,292,492,479,-1,325,20,480,-1,481,15,300,375,-1,301,15,481,482,-1,303,64,482,369,-1,304,36,418,483,-1,130,60,307,484,-1,358,11,308,-1,485,496,133,-1,311,19,486,-1,417,128,400,487,-1,314,14,369,478,-1,472,124,342,490,-1,494,99,488,-1,495,86,363,353,-1,468,356,495,-1,355,361,360,-1,370,135,376,134,-1,381,497,376,-1,458,136,497,-1,498,119,465,-1,499,119,498,-1,500,84,383,499,-1,501,125,473,-1,502,90,367,501,-1,502,96,396,-1,493,88,399,503,-1,389,83,387,-1,471,83,389,-1,386,136,458,-1,505,118,384,-1,506,92,379,505,-1,507,127,477,-1,507,395,127,-1,422,101,93,-1,143,101,424,-1,339,138,122,-1,145,4,146,144,-1,146,147,144,-1,147,82,148,144,-1,148,78,144,-1,149,202,157,-1,157,81,150,149,-1,150,6,151,149,-1,152,8,153,-1,153,65,154,152,-1,155,202,66,-1,156,10,157,158,-1,157,202,158,-1,159,160,39,-1,161,58,162,163,-1,163,164,196,-1,164,165,166,-1,165,59,166,-1,166,69,167,-1,169,3,170,168,-1,170,35,171,168,-1,173,174,172,-1,174,7,175,172,-1,175,63,287,172,-1,297,73,176,-1,296,297,176,-1,176,74,296,-1,68,293,177,-1,177,65,153,-1,153,8,68,177,-1,241,285,178,-1,178,61,179,-1,179,18,241,178,-1,195,24,180,-1,180,24,72,-1,298,1,182,181,-1,182,299,181,-1,299,183,181,-1,279,56,276,-1,56,57,280,276,-1,295,16,185,-1,186,9,187,327,-1,187,54,327,-1,326,79,188,-1,182,1,190,189,-1,190,55,189,-1,55,53,182,189,-1,281,191,335,-1,16,277,185,-1,277,335,192,185,-1,194,0,195,-1,197,24,195,-1,195,198,197,-1,196,164,199,-1,199,72,24,-1,24,197,199,-1,164,167,199,-1,200,320,68,-1,68,8,201,-1,149,151,201,152,-1,201,8,152,-1,152,337,202,-1,158,202,155,-1,203,204,174,-1,204,27,205,174,-1,205,7,174,-1,207,67,208,206,-1,208,5,209,206,-1,209,27,204,206,-1,210,34,211,-1,211,221,224,-1,224,226,211,-1,212,28,213,214,-1,214,31,215,-1,216,29,217,218,-1,29,25,219,220,-1,219,30,220,-1,214,213,221,-1,221,222,214,-1,222,32,223,214,-1,218,217,224,-1,220,30,225,226,-1,221,211,222,-1,211,34,227,222,-1,224,217,226,-1,226,225,228,-1,228,33,226,-1,151,6,229,200,-1,229,318,200,-1,318,320,200,-1,231,36,232,230,-1,232,171,233,230,-1,233,67,234,230,-1,234,28,212,230,-1,71,318,229,235,-1,229,6,236,235,-1,238,40,38,237,-1,38,236,237,-1,236,6,150,237,-1,150,81,238,237,-1,159,39,10,239,-1,10,156,239,-1,147,146,40,-1,238,240,40,-1,146,4,242,243,-1,38,40,244,-1,40,41,244,-1,40,146,243,-1,243,41,40,-1,315,71,245,-1,245,42,315,-1,71,38,246,245,-1,247,315,248,-1,315,42,253,248,-1,41,250,244,-1,250,251,244,-1,245,252,42,-1,245,246,252,-1,246,43,252,-1,242,249,254,-1,252,44,42,-1,252,43,44,-1,43,45,44,-1,41,243,256,-1,45,49,260,44,-1,253,42,264,-1,258,47,48,257,-1,48,259,257,-1,259,50,260,257,-1,260,49,257,-1,49,46,261,257,-1,255,250,262,-1,262,50,259,-1,41,256,270,-1,42,44,263,272,-1,260,50,263,-1,254,47,258,256,-1,261,46,264,-1,52,51,272,-1,274,270,273,-1,264,272,269,-1,272,265,269,-1,272,263,266,-1,263,50,267,-1,267,266,263,-1,270,271,262,-1,51,265,272,-1,266,52,272,-1,267,52,266,-1,268,273,269,-1,270,256,273,-1,191,22,76,-1,55,276,53,-1,278,2,192,-1,296,74,188,-1,188,79,193,296,-1,193,277,16,296,-1,22,56,279,-1,280,57,75,-1,276,55,279,-1,333,184,277,-1,184,281,277,-1,193,75,333,-1,166,59,283,284,-1,283,3,169,284,-1,198,78,58,161,-1,285,62,286,194,-1,286,0,194,-1,287,63,288,-1,288,1,298,287,-1,177,293,295,289,-1,295,2,289,-1,154,65,289,-1,289,2,278,154,-1,278,80,290,154,-1,290,9,186,-1,186,77,290,-1,216,28,234,-1,234,67,207,216,-1,207,204,291,216,-1,292,294,293,-1,68,320,293,-1,294,16,295,293,-1,296,20,297,-1,325,73,297,-1,299,21,300,183,-1,301,64,302,-1,287,298,302,-1,303,14,173,-1,173,287,302,-1,304,12,305,-1,305,169,168,-1,168,171,232,305,-1,69,284,306,-1,284,169,305,306,-1,305,12,307,306,-1,69,60,308,167,-1,167,11,309,199,-1,309,496,72,199,-1,485,180,72,-1,504,195,180,-1,310,70,23,-1,23,19,310,-1,311,61,178,310,-1,178,285,310,-1,285,70,310,-1,233,171,312,-1,171,35,313,312,-1,313,5,208,312,-1,314,25,29,203,-1,29,291,203,-1,291,204,203,-1,241,71,315,-1,285,241,316,-1,241,315,316,-1,315,247,316,-1,247,4,145,316,-1,71,241,318,-1,241,37,317,318,-1,317,17,318,-1,318,17,319,-1,319,26,320,318,-1,320,26,321,-1,321,292,320,-1,322,159,239,-1,239,156,323,322,-1,323,5,313,322,-1,324,82,160,-1,160,159,322,-1,322,35,170,160,-1,282,82,324,-1,324,3,283,-1,283,59,162,324,-1,163,162,165,-1,162,59,165,-1,325,21,299,73,-1,299,182,73,-1,188,74,182,-1,182,53,326,-1,280,75,326,-1,326,53,280,-1,327,54,76,-1,328,77,327,-1,327,55,190,-1,329,66,290,288,-1,290,77,328,288,-1,328,1,288,-1,330,155,66,329,-1,329,63,175,-1,330,158,155,-1,330,7,205,-1,323,156,158,331,-1,158,330,331,-1,330,27,209,331,-1,504,23,195,-1,286,62,78,198,-1,193,79,275,-1,332,333,75,-1,333,332,184,-1,281,184,22,-1,184,334,22,-1,191,281,22,-1,336,80,192,-1,335,54,187,192,-1,337,154,290,-1,290,80,336,-1,336,9,290,-1,152,154,337,-1,157,10,81,-1,81,10,238,-1,238,39,240,-1,82,282,148,-1,282,58,148,-1,138,339,338,-1,339,143,340,338,-1,340,341,338,-1,341,87,342,338,-1,343,89,344,345,-1,344,142,351,345,-1,351,395,345,-1,346,126,347,348,-1,347,91,348,-1,127,395,349,-1,350,395,351,-1,351,93,352,350,-1,353,354,101,-1,391,361,355,-1,356,122,357,355,-1,358,130,359,-1,359,123,360,-1,360,361,359,-1,362,99,363,365,-1,363,86,364,365,-1,474,125,367,366,-1,367,90,368,366,-1,368,369,366,-1,370,134,480,-1,386,135,370,-1,370,480,296,386,-1,129,91,347,371,-1,347,126,371,-1,371,479,129,-1,425,18,179,372,-1,179,61,372,-1,372,472,425,-1,373,95,387,-1,95,373,133,-1,375,21,374,-1,21,376,374,-1,376,84,481,374,-1,464,463,462,459,-1,462,465,459,-1,377,467,466,-1,16,476,378,-1,118,379,499,-1,379,92,380,499,-1,381,139,497,-1,376,117,119,382,-1,119,383,382,-1,383,84,376,382,-1,384,140,505,-1,140,385,505,-1,385,460,378,-1,460,16,378,-1,387,83,388,-1,389,387,390,-1,387,95,390,-1,390,95,392,-1,95,133,392,-1,392,361,391,-1,392,358,361,-1,393,91,129,-1,492,394,129,-1,395,507,348,-1,348,91,393,-1,393,343,345,348,-1,395,350,349,-1,368,90,396,-1,396,96,397,368,-1,397,478,368,-1,397,96,399,398,-1,399,88,400,398,-1,400,128,401,398,-1,413,412,402,-1,412,411,402,-1,402,34,210,-1,215,31,403,-1,404,97,405,403,-1,407,98,408,406,-1,409,30,219,-1,219,25,98,409,-1,223,32,410,403,-1,410,411,403,-1,411,404,403,-1,407,406,412,-1,225,30,409,413,-1,227,34,402,410,-1,402,411,410,-1,413,407,412,-1,413,33,228,-1,228,225,413,-1,394,492,491,-1,491,414,394,-1,414,89,343,394,-1,405,97,416,415,-1,416,128,417,415,-1,417,362,418,415,-1,418,36,231,415,-1,420,89,414,419,-1,414,491,132,419,-1,422,142,344,421,-1,344,89,420,421,-1,420,100,421,-1,100,102,422,421,-1,352,93,423,-1,93,101,354,423,-1,424,422,102,-1,102,341,340,-1,105,427,426,-1,427,87,341,426,-1,428,103,102,-1,102,100,428,-1,103,426,102,-1,426,341,102,-1,489,104,429,-1,132,489,429,-1,430,100,132,429,-1,436,104,489,431,-1,489,432,431,-1,428,106,433,-1,433,103,428,-1,434,429,104,-1,435,430,429,434,-1,106,107,433,-1,104,108,434,-1,438,435,434,108,-1,440,426,103,-1,443,111,438,108,-1,439,112,448,-1,104,436,448,-1,442,112,111,441,-1,111,443,441,-1,443,113,444,441,-1,444,110,441,-1,110,109,445,441,-1,444,113,446,-1,446,433,107,-1,446,114,447,-1,440,103,447,-1,449,108,104,453,-1,449,113,443,-1,445,109,437,440,-1,448,112,442,-1,451,447,116,-1,453,454,449,-1,454,113,449,-1,457,114,446,-1,452,450,455,-1,450,448,455,-1,453,115,454,-1,447,451,456,455,-1,457,116,114,-1,114,116,447,-1,498,94,384,-1,459,119,117,-1,385,85,461,505,-1,386,139,381,-1,381,135,386,-1,462,94,498,-1,465,119,459,-1,466,467,460,-1,467,136,386,-1,364,86,470,469,-1,470,123,359,469,-1,122,138,389,357,-1,388,83,471,-1,471,124,472,388,-1,481,84,473,474,-1,473,125,474,-1,475,85,476,-1,476,479,371,475,-1,477,141,461,346,-1,461,85,475,346,-1,475,126,346,-1,477,137,380,-1,380,92,477,-1,478,397,401,408,-1,401,128,416,408,-1,416,97,408,-1,492,129,479,-1,479,294,292,-1,16,294,476,-1,294,479,476,-1,480,20,296,-1,300,21,375,-1,481,474,482,-1,482,64,301,-1,482,474,369,-1,369,14,303,-1,418,362,365,483,-1,365,364,483,-1,483,12,304,-1,307,12,483,484,-1,483,364,469,484,-1,469,130,484,-1,308,60,130,358,-1,133,496,309,392,-1,309,11,358,392,-1,133,373,485,-1,485,373,504,-1,19,23,486,-1,23,131,486,-1,486,131,472,311,-1,472,372,311,-1,372,61,311,-1,400,88,488,487,-1,488,99,362,487,-1,362,417,487,-1,98,25,314,478,-1,132,425,489,-1,342,87,432,490,-1,432,489,490,-1,489,425,490,-1,425,472,490,-1,491,17,317,-1,317,37,425,491,-1,425,132,491,-1,492,26,319,491,-1,319,17,491,-1,492,292,321,-1,321,26,492,-1,488,88,493,494,-1,493,352,423,494,-1,423,354,494,-1,363,99,494,353,-1,494,354,353,-1,353,143,495,-1,356,123,470,495,-1,470,86,495,-1,495,143,468,-1,360,123,356,-1,356,355,360,-1,21,325,134,-1,325,480,134,-1,376,21,134,-1,497,117,376,-1,376,135,381,-1,464,117,497,-1,497,136,464,-1,498,118,499,-1,383,119,499,-1,499,137,500,-1,473,84,500,-1,500,137,477,473,-1,477,127,501,473,-1,367,125,501,-1,127,349,502,501,-1,396,90,502,-1,349,350,502,-1,399,96,502,503,-1,502,350,503,-1,350,352,493,503,-1,387,23,504,-1,138,124,471,389,-1,139,386,458,-1,467,121,136,-1,120,121,467,377,-1,94,120,377,-1,377,466,94,-1,466,140,94,-1,94,140,384,-1,379,118,505,-1,505,141,506,-1,477,92,506,-1,506,141,477,-1,477,346,507,-1,507,346,348,-1,142,93,351,-1,93,142,422,-1,101,422,424,-1,122,468,339,-1,468,143,339,-1],creaseAngle=3.141593, coord=Coordinate(point=[(0.406,-0.354,7.585),(0.595,0.257,-10.387),(0.592,-0.511,-10.191),(1.246,2.012,5.391),(1.352,0.121,5.105),(1.336,3.003,-1.028),(1.311,0.633,-1.014),(1.094,2.428,-4.614),(1.092,0.629,-4.612),(0.731,-0.037,-10.028),(1.609,1.746,-0.340),(0.000,0.248,8.466),(0.000,2.636,5.449),(0.000,3.848,-0.860),(0.000,3.028,-4.612),(0.000,0.736,-10.447),(0.000,-0.861,-12.038),(0.000,0.136,-1.026),(0.000,-0.399,5.098),(0.000,-0.403,7.549),(0.000,-0.755,-12.341),(-0.000,-0.388,-12.152),(2.230,-0.393,-10.905),(0.000,-0.593,9.698),(0.244,-0.438,9.777),(0.000,3.483,-3.428),(0.000,0.197,-3.217),(1.254,2.808,-3.215),(0.288,3.777,-1.600),(0.214,3.435,-3.395),(0.000,4.020,-3.239),(0.000,4.438,-1.976),(0.000,5.045,-2.584),(0.000,5.251,-3.530),(0.000,5.399,-3.333),(1.351,2.413,3.634),(0.000,3.064,3.705),(0.000,-0.359,4.511),(1.420,0.181,4.105),(1.604,1.177,4.564),(1.474,0.348,4.488),(1.615,0.239,4.637),(2.076,-0.120,4.894),(1.898,0.243,4.322),(2.289,0.183,4.118),(2.299,0.234,4.109),(2.826,-0.163,4.828),(2.826,-0.163,4.828),(2.544,0.213,4.049),(2.544,0.213,4.049),(3.490,0.138,3.808),(4.921,-0.142,3.845),(4.790,-0.055,3.678),(1.565,-0.593,-11.962),(1.492,-0.303,-10.651),(1.564,-0.259,-10.985),(3.827,-0.768,-12.034),(3.827,-0.838,-12.332),(1.128,0.377,6.618),(0.877,1.397,6.867),(0.000,1.782,6.910),(0.000,-0.414,6.161),(0.903,-0.161,6.285),(0.760,1.439,-7.595),(0.000,2.025,-7.687),(0.759,0.172,-7.387),(0.948,1.015,-7.248),(0.794,3.480,-1.028),(0.820,0.463,-4.395),(0.307,1.733,6.904),(0.212,-0.389,7.558),(1.254,0.048,4.289),(0.133,-0.404,10.100),(0.261,-0.625,-12.372),(0.578,-0.757,-12.315),(2.366,-0.758,-12.193),(2.104,-0.308,-10.898),(0.707,0.147,-10.076),(1.003,-0.029,6.356),(1.337,-0.748,-12.171),(0.703,-0.260,-9.969),(1.569,1.470,-1.024),(1.518,0.939,5.322),(-0.406,-0.354,7.585),(-0.595,0.257,-10.387),(-0.592,-0.511,-10.191),(-1.246,2.012,5.391),(-1.352,0.121,5.105),(-1.336,3.003,-1.028),(-1.311,0.633,-1.014),(-1.094,2.428,-4.614),(-1.092,0.629,-4.612),(-0.731,-0.037,-10.028),(-1.609,1.746,-0.340),(-2.230,-0.393,-10.905),(-0.244,-0.438,9.777),(-1.254,2.808,-3.215),(-0.288,3.777,-1.600),(-0.214,3.435,-3.395),(-1.351,2.413,3.634),(-1.420,0.181,4.105),(-1.604,1.177,4.564),(-1.473,0.346,4.484),(-1.615,0.239,4.637),(-2.082,-0.255,4.880),(-2.328,-0.272,5.007),(-1.878,0.128,4.330),(-2.279,0.162,4.119),(-2.273,0.109,4.125),(-2.832,-0.238,4.816),(-2.525,0.162,4.060),(-2.525,0.162,4.060),(-2.832,-0.238,4.816),(-3.474,0.172,3.819),(-4.188,0.194,3.754),(-4.785,0.083,3.686),(-4.782,0.097,3.673),(-1.565,-0.593,-11.962),(-1.492,-0.303,-10.651),(-1.563,-0.259,-10.985),(-3.827,-0.768,-12.035),(-3.827,-0.838,-12.332),(-1.128,0.377,6.618),(-0.877,1.397,6.867),(-0.902,-0.161,6.285),(-0.759,1.439,-7.595),(-0.759,0.172,-7.387),(-0.948,1.015,-7.248),(-0.794,3.480,-1.028),(-0.819,0.463,-4.395),(-0.307,1.733,6.904),(-0.212,-0.389,7.558),(-1.254,0.048,4.289),(-0.137,-0.407,10.106),(-0.261,-0.625,-12.372),(-0.578,-0.757,-12.315),(-2.366,-0.758,-12.193),(-0.707,0.147,-10.076),(-1.003,-0.029,6.356),(-1.337,-0.748,-12.171),(-2.279,-0.536,-10.956),(-0.703,-0.260,-9.969),(-1.569,1.470,-1.024),(-1.518,0.939,5.322),(1.233,0.168,5.750),(1.109,-0.018,5.696),(1.438,0.179,5.224),(1.396,0.362,5.180),(1.295,0.451,6.001),(1.405,0.892,-2.699),(1.454,0.898,-1.018),(1.236,0.634,-3.216),(1.270,0.860,-4.084),(0.936,0.381,-5.814),(0.694,0.114,-8.542),(1.379,1.957,-4.058),(1.568,2.080,-1.032),(1.558,1.624,-2.313),(1.508,2.086,-2.805),(1.589,1.619,3.558),(1.463,1.924,4.730),(0.797,0.113,7.250),(1.013,1.054,6.813),(0.751,0.341,7.441),(0.381,0.198,8.402),(0.617,0.802,7.625),(0.646,1.593,6.882),(0.106,0.263,8.437),(0.981,2.478,4.778),(0.910,2.285,5.424),(1.324,2.197,4.764),(0.976,2.734,3.562),(0.727,2.092,-6.076),(0.335,2.916,-4.634),(0.966,2.573,-4.485),(0.935,1.907,-6.068),(0.382,-0.758,-12.340),(0.621,0.122,-7.216),(0.282,-0.378,6.050),(0.000,-0.416,5.623),(0.166,-0.493,10.088),(0.396,-0.060,-11.397),(0.649,-0.634,-12.284),(0.260,-0.077,-11.631),(3.826,-0.846,-12.093),(0.726,-0.722,-11.363),(0.721,0.058,-10.051),(1.037,-0.224,-10.494),(0.906,-0.752,-12.240),(0.923,-0.274,-11.369),(0.990,-0.051,-10.761),(1.878,-0.356,-10.783),(1.003,-0.476,-10.427),(1.651,-0.818,-12.139),(0.321,-0.378,7.554),(0.129,-0.613,10.034),(0.568,-0.055,7.850),(0.376,-0.275,8.845),(0.452,-0.310,7.576),(0.243,-0.178,9.268),(0.958,0.464,-3.212),(1.183,0.626,-3.826),(1.487,1.651,-3.429),(0.495,3.088,-3.826),(0.922,3.111,-3.174),(1.192,2.632,-3.828),(1.072,3.194,-2.389),(0.789,3.383,-2.403),(1.095,3.269,-1.023),(1.303,2.947,-2.396),(0.000,5.392,-3.498),(0.128,5.385,-3.462),(0.191,3.821,-0.863),(0.219,4.008,-1.909),(0.126,4.143,-1.749),(0.000,4.131,-1.732),(0.328,3.588,-2.446),(0.206,3.787,-2.996),(0.248,3.828,-2.467),(0.000,3.741,-3.260),(0.109,3.788,-3.231),(0.226,5.068,-2.873),(0.135,5.104,-2.721),(0.000,4.755,-2.253),(0.232,5.201,-3.339),(0.000,4.368,-3.296),(0.167,5.139,-3.511),(0.000,5.272,-2.986),(0.000,4.982,-3.473),(1.003,0.446,-1.011),(0.385,3.362,1.463),(0.000,3.422,1.476),(0.367,2.997,3.695),(0.755,3.207,1.458),(0.492,3.614,-1.030),(1.014,0.266,1.238),(1.328,0.459,1.254),(1.474,0.721,1.263),(1.604,1.123,3.184),(1.590,1.850,1.609),(1.561,0.872,4.713),(0.297,-0.329,4.758),(2.054,-0.107,5.042),(1.614,0.175,5.139),(1.413,0.174,4.410),(1.430,0.096,4.398),(1.413,0.161,4.374),(1.240,-0.008,5.264),(2.054,-0.107,5.042),(2.296,-0.136,5.001),(1.940,0.284,4.342),(1.898,0.243,4.322),(1.832,0.202,4.315),(2.299,-0.137,5.002),(2.596,-0.155,4.911),(2.299,0.234,4.109),(3.644,-0.119,4.507),(3.135,-0.026,4.361),(3.412,-0.146,4.548),(3.048,0.134,4.041),(3.059,0.101,3.995),(3.409,-0.162,4.542),(3.098,0.194,4.011),(3.429,0.112,3.810),(3.566,-0.225,4.488),(4.469,-0.203,4.197),(4.279,-0.027,3.695),(3.998,0.097,3.678),(4.469,-0.203,4.197),(4.181,-0.230,4.386),(4.511,0.051,3.746),(3.998,0.097,3.678),(4.773,-0.181,3.831),(4.945,-0.130,3.863),(4.790,-0.055,3.678),(1.835,-0.752,-12.166),(3.820,-0.740,-12.196),(1.577,-0.786,-11.898),(0.684,-0.364,-9.935),(3.518,-0.625,-11.844),(3.620,-0.774,-12.296),(2.659,-0.599,-11.176),(1.361,0.808,5.973),(1.093,1.776,6.101),(0.781,1.988,6.207),(0.630,-0.278,6.123),(0.653,-0.258,6.832),(0.355,1.602,-8.291),(0.618,0.826,-9.075),(0.615,-0.193,-8.806),(0.737,0.348,-8.999),(0.458,3.318,-3.210),(0.000,0.289,-4.582),(0.269,0.016,-7.671),(0.000,0.006,-7.483),(0.270,-0.449,-9.802),(0.000,-0.883,-12.340),(0.240,-0.756,-12.340),(0.241,0.623,-10.495),(0.195,-0.453,-12.195),(0.000,0.106,-11.470),(0.000,1.356,-9.204),(0.129,1.401,-9.017),(0.000,2.503,-6.163),(0.000,2.845,4.831),(0.317,2.726,5.066),(0.291,2.268,6.118),(0.000,2.309,6.143),(0.000,1.013,7.665),(0.000,-0.159,9.276),(0.106,-0.398,7.541),(0.000,-0.393,6.740),(1.095,2.997,1.445),(1.353,2.746,1.407),(0.000,3.237,-3.817),(1.211,-0.031,5.029),(0.882,-0.156,5.634),(0.000,-0.048,1.161),(0.295,0.189,-1.395),(0.000,0.162,-2.408),(0.236,0.226,-3.221),(0.000,0.230,-3.825),(1.495,2.198,3.199),(1.457,2.704,-1.029),(1.311,1.639,5.732),(0.000,-0.604,-12.379),(1.442,-0.683,-12.174),(1.014,-0.029,-10.542),(0.686,0.245,-10.098),(0.906,1.430,-7.027),(1.349,2.495,-3.479),(1.420,2.673,-2.376),(3.827,-0.838,-12.332),(3.639,-0.875,-12.265),(3.827,-0.768,-12.034),(1.637,-0.466,-10.669),(0.717,-0.145,-9.994),(0.969,0.818,-6.894),(-1.233,0.168,5.750),(-1.295,0.451,6.001),(-1.396,0.362,5.180),(-1.438,0.179,5.224),(-1.109,-0.018,5.696),(-1.236,0.634,-3.216),(-1.454,0.898,-1.018),(-1.405,0.892,-2.699),(-0.694,0.114,-8.542),(-0.936,0.381,-5.814),(-1.270,0.860,-4.084),(-1.376,1.957,-4.068),(-1.508,2.086,-2.805),(-1.558,1.624,-2.313),(-1.568,2.080,-1.032),(-1.462,1.924,4.730),(-1.589,1.619,3.558),(-0.751,0.341,7.441),(-1.013,1.054,6.813),(-0.797,0.113,7.250),(-0.095,0.259,8.444),(-0.646,1.593,6.882),(-0.617,0.802,7.625),(-0.381,0.198,8.402),(-0.976,2.734,3.562),(-1.323,2.197,4.764),(-0.910,2.285,5.424),(-0.981,2.478,4.778),(-0.727,2.092,-6.076),(-0.935,1.907,-6.068),(-0.966,2.573,-4.485),(-0.313,2.931,-4.622),(-0.382,-0.758,-12.340),(-0.621,0.122,-7.216),(-0.282,-0.378,6.050),(-0.166,-0.493,10.088),(-0.396,-0.060,-11.397),(-0.260,-0.077,-11.631),(-0.649,-0.634,-12.284),(-3.839,-0.805,-12.123),(-0.726,-0.722,-11.363),(-1.037,-0.224,-10.494),(-0.721,0.058,-10.051),(-0.906,-0.752,-12.240),(-0.923,-0.274,-11.369),(-0.990,-0.051,-10.761),(-1.878,-0.356,-10.783),(-1.205,-0.542,-10.763),(-1.383,-0.813,-12.138),(-0.130,-0.614,10.033),(-0.321,-0.378,7.554),(-0.452,-0.310,7.576),(-0.376,-0.275,8.845),(-0.568,-0.055,7.850),(-0.243,-0.178,9.268),(-1.183,0.626,-3.826),(-0.958,0.464,-3.212),(-1.487,1.651,-3.429),(-1.192,2.632,-3.828),(-0.922,3.111,-3.174),(-1.072,3.194,-2.389),(-1.303,2.947,-2.396),(-1.095,3.269,-1.023),(-0.789,3.383,-2.403),(-0.128,5.385,-3.462),(-0.126,4.143,-1.749),(-0.219,4.008,-1.909),(-0.191,3.821,-0.863),(-0.248,3.828,-2.467),(-0.206,3.787,-2.996),(-0.328,3.588,-2.446),(-0.109,3.788,-3.231),(-0.135,5.104,-2.721),(-0.226,5.068,-2.873),(-0.232,5.201,-3.339),(-0.167,5.139,-3.511),(-1.003,0.446,-1.011),(-0.385,3.362,1.463),(-0.492,3.614,-1.030),(-0.755,3.207,1.458),(-0.367,2.997,3.695),(-1.014,0.266,1.238),(-1.328,0.459,1.254),(-1.474,0.721,1.263),(-1.604,1.123,3.184),(-1.590,1.850,1.609),(-1.561,0.872,4.713),(-0.297,-0.329,4.758),(-1.614,0.175,5.139),(-2.057,-0.253,5.029),(-1.413,0.174,4.410),(-1.430,0.096,4.398),(-1.413,0.161,4.374),(-2.058,-0.253,5.029),(-1.240,-0.008,5.264),(-1.917,0.170,4.352),(-1.816,0.082,4.320),(-1.878,0.128,4.330),(-2.311,-0.264,4.989),(-2.603,-0.252,4.898),(-2.279,0.162,4.119),(-2.600,-0.252,4.899),(-3.645,-0.115,4.502),(-3.132,-0.051,4.359),(-3.415,-0.177,4.534),(-3.046,0.092,4.002),(-3.033,0.121,4.049),(-3.416,-0.162,4.541),(-3.079,0.187,4.023),(-4.759,0.080,3.863),(-3.576,-0.226,4.477),(-3.415,0.142,3.820),(-4.922,-0.004,3.848),(-4.915,0.002,3.846),(-4.475,-0.119,4.193),(-4.629,0.022,3.710),(-3.984,0.176,3.691),(-4.189,-0.179,4.379),(-4.475,-0.119,4.193),(-3.984,0.176,3.691),(-1.835,-0.752,-12.166),(-3.819,-0.740,-12.196),(-1.585,-0.780,-11.874),(-0.684,-0.364,-9.935),(-3.827,-0.768,-12.034),(-3.827,-0.838,-12.332),(-3.606,-0.774,-12.299),(-3.518,-0.625,-11.844),(-3.747,-0.824,-11.973),(-3.634,-0.874,-12.267),(-1.361,0.808,5.973),(-0.781,1.988,6.207),(-1.093,1.776,6.101),(-0.653,-0.258,6.832),(-0.630,-0.278,6.123),(-0.618,0.826,-9.075),(-0.338,1.573,-8.424),(-0.615,-0.193,-8.806),(-0.266,-0.391,-9.506),(-0.737,0.348,-8.999),(-0.495,3.120,-3.747),(-0.275,0.029,-7.525),(-0.255,-0.756,-12.340),(-0.241,0.623,-10.495),(-0.129,1.401,-9.017),(-0.317,2.726,5.066),(-0.291,2.268,6.118),(0.000,-0.493,10.087),(-0.107,-0.398,7.541),(-1.095,2.997,1.445),(-1.353,2.746,1.407),(-1.211,-0.031,5.029),(-0.882,-0.156,5.634),(-0.295,0.189,-1.395),(-0.211,0.218,-3.221),(-1.457,2.704,-1.029),(-1.495,2.198,3.199),(-1.311,1.639,5.732),(0.000,-0.411,10.104),(-1.442,-0.683,-12.174),(-2.152,-0.315,-10.923),(-1.014,-0.029,-10.542),(-0.686,0.245,-10.098),(-0.906,1.430,-7.027),(-1.349,2.495,-3.479),(-1.420,2.673,-2.376),(0.000,-0.594,10.052),(-1.015,-0.439,-10.434),(-0.717,-0.145,-9.994),(-0.969,0.818,-6.894)])))])]) ) # X3D model complete #################################################################################################### # Self-test diagnostics #################################################################################################### print('Self-test diagnostics for DolphinPose03.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 DolphinPose03.py load and self-test diagnostics complete.")