Appearance32.setTexture(PixelTexture34) Shape31.setAppearance(Appearance32) IndexedFaceSet35 = x3dpsail.IndexedFaceSet() IndexedFaceSet35.setColorPerVertex(False) IndexedFaceSet35.setCoordIndex([ 0, 1, 3, 2, -1, 4, 5, 7, 6, -1, 6, 7, 1, 0, -1, 2, 3, 5, 4, -1, 6, 0, 2, 4, -1, 1, 7, 5, 3, -1 ]) IndexedFaceSet35.setCreaseAngle(0.5) IndexedFaceSet35.setTexCoordIndex([ 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1 ]) Color36 = x3dpsail.Color() Color36.setColor([0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0]) IndexedFaceSet35.setColor(Color36) Coordinate37 = x3dpsail.Coordinate() Coordinate37.setPoint([ -2, 1, 1, -2, -1, 1, 2, 1, 1, 2, -1, 1, 2, 1, -1, 2, -1, -1, -2, 1, -1, -2, -1, -1 ]) IndexedFaceSet35.setCoord(Coordinate37) TextureCoordinate38 = x3dpsail.TextureCoordinate() TextureCoordinate38.setPoint([0, 1, 0, 0, 1, 1, 1, 0]) IndexedFaceSet35.setTexCoord(TextureCoordinate38)
]))). addChild(x3dpsail.Shape().setAppearance( x3dpsail.Appearance().setMaterial(x3dpsail.Material()).setTexture( x3dpsail.PixelTexture().setImage( x3dpsail.SFImage(2, 2, 4, -16776961, 16711935, -1, -65281))) ).setGeometry(x3dpsail.IndexedFaceSet().setColorPerVertex( x3dpsail.SFBool(False)).setCoordIndex( x3dpsail.MFInt32([ 0, 1, 3, 2, -1, 4, 5, 7, 6, -1, 6, 7, 1, 0, -1, 2, 3, 5, 4, -1, 6, 0, 2, 4, -1, 1, 7, 5, 3, -1 ])).setCreaseAngle(x3dpsail.SFFloat(0.5)).setTexCoordIndex( x3dpsail.MFInt32([ 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1 ])).setColor(x3dpsail.Color().setColor( x3dpsail.MFColor([ 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0 ]))).setCoord(x3dpsail.Coordinate().setPoint( x3dpsail.MFVec3f([ -2, 1, 1, -2, -1, 1, 2, 1, 1, 2, -1, 1, 2, 1, -1, 2, -1, -1, -2, 1, -1, -2, -1, -1 ]))).setTexCoord( x3dpsail.TextureCoordinate().setPoint( x3dpsail.MFVec2f( [-1, 2, -1, -1, 2, 2, 2, -1]))))))) X3D0.toFileX3D("./future/./indexedfaceset_pixeltexture_plus_RoundTrip.x3d")
1, 2, 2, 1, -1, 1, 2, 3, 0, -1 ]) IndexedFaceSet10.setNormalIndex( [0, -1, 0, -1, 1, -1, 2, -1, 3, -1, 4, -1, 5, -1]) IndexedFaceSet10.setNormalPerVertex(False) IndexedFaceSet10.setColorIndex([ 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1 ]) Coordinate11 = x3dpsail.Coordinate() Coordinate11.setPoint([0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1]) IndexedFaceSet10.setCoord(Coordinate11) Normal12 = x3dpsail.Normal() Normal12.setVector([1, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1, 0, -1, 0, 0, 0, 1]) IndexedFaceSet10.setNormal(Normal12) Color13 = x3dpsail.Color() Color13.setColor([0, 1, 0]) IndexedFaceSet10.setColor(Color13) Shape9.setGeometry(IndexedFaceSet10) Group8.addChildren(Shape9) Scene7.addChildren(Group8) X3D0.setScene(Scene7) X3D0.toFileX3D("././ifscube_RoundTrip.x3d")
x3dpsail.SFString("John Carlson"))).addMeta( x3dpsail.meta().setName( x3dpsail.SFString("created")).setContent( x3dpsail.SFString("4 April 2017")))). setScene(x3dpsail.Scene().addChild(x3dpsail.Group().addChild( x3dpsail.Shape().setGeometry(x3dpsail.IndexedFaceSet().setDEF( x3dpsail.SFString("IndexedFaceSet")).setCoordIndex( x3dpsail.MFInt32([ 0, 0, 1, -1, 0, 1, 1, -1, 2, 2, 3, 3, -1, 0, 3, 3, 0, -1, 0, 3, 2, 1, -1, 1, 2, 2, 1, -1, 1, 2, 3, 0, -1 ])).setNormalIndex(x3dpsail.MFInt32( [0, 0, 1, 2, 3, 4, 5])).setNormalPerVertex( x3dpsail.SFBool(False)).setColorIndex( x3dpsail.MFInt32([ 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1 ])).setCoord(x3dpsail.Coordinate().setPoint( x3dpsail.MFVec3f([ 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1 ]))).setNormal(x3dpsail.Normal().setVector( x3dpsail.MFVec3f([ 1, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1, 0, -1, 0, 0, 0, 1 ]))).setColor( x3dpsail.Color().setColor( x3dpsail.MFColor([0, 1, 0])))))))) X3D0.toFileX3D("./future/./ifscubeworks_RoundTrip.x3d")
Appearance31.setTexture(PixelTexture33) Shape30.setAppearance(Appearance31) IndexedFaceSet34 = x3dpsail.IndexedFaceSet() IndexedFaceSet34.setColorPerVertex(False) IndexedFaceSet34.setCoordIndex([ 0, 1, 3, 2, -1, 4, 5, 7, 6, -1, 6, 7, 1, 0, -1, 2, 3, 5, 4, -1, 6, 0, 2, 4, -1, 1, 7, 5, 3, -1 ]) IndexedFaceSet34.setCreaseAngle(0.5) IndexedFaceSet34.setTexCoordIndex([ 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1, 0, 1, 3, 2, -1 ]) Color35 = x3dpsail.Color() Color35.setColor([0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0]) IndexedFaceSet34.setColor(Color35) Coordinate36 = x3dpsail.Coordinate() Coordinate36.setPoint([ -2, 1, 1, -2, -1, 1, 2, 1, 1, 2, -1, 1, 2, 1, -1, 2, -1, -1, -2, 1, -1, -2, -1, -1 ]) IndexedFaceSet34.setCoord(Coordinate36) TextureCoordinate37 = x3dpsail.TextureCoordinate() TextureCoordinate37.setPoint([0.5, 1, 0.5, 0.5, 1, 1, 1, 0.5]) IndexedFaceSet34.setTexCoord(TextureCoordinate37)
5.25, 0, -0.75, 5.25, 0, 0.75, 5.25, 0, 2.25, 5.25, 0, 3.75, 5.25, 0, 5.25, 5.25, 0, -5.25, 3.75, 0, -3.75, 3.75, 0, -2.25, 3.75, 0, -0.75, 3.75, 0, 0.75, 3.75, 0, 2.25, 3.75, 0, 3.75, 3.75, 0, 5.25, 3.75, 0, -5.25, 2.25, 0, -3.75, 2.25, 0, -2.25, 2.25, 0, -0.75, 2.25, 0, 0.75, 2.25, 0, 2.25, 2.25, 0, 3.75, 2.25, 0, 5.25, 2.25, 0, -5.25, 0.75, 0, -3.75, 0.75, 0, -2.25, 0.75, 0, -0.75, 0.75, 0, 0.75, 0.75, 0, 2.25, 0.75, 0, 3.75, 0.75, 0, 5.25, 0.75, 0, -5.25, -0.75, 0, -3.75, -0.75, 0, -2.25, -0.75, 0, -0.75, -0.75, 0, 0.75, -0.75, 0, 2.25, -0.75, 0, 3.75, -0.75, 0, 5.25, -0.75, 0, -5.25, -2.25, 0, -3.75, -2.25, 0, -2.25, -2.25, 0, -0.75, -2.25, 0, 0.75, -2.25, 0, 2.25, -2.25, 0, 3.75, -2.25, 0, 5.25, -2.25, 0, -5.25, -3.75, 0, -3.75, -3.75, 0, -2.25, -3.75, 0, -0.75, -3.75, 0, 0.75, -3.75, 0, 2.25, -3.75, 0, 3.75, -3.75, 0, 5.25, -3.75, 0, -5.25, -5.25, 0, -3.75, -5.25, 0, -2.25, -5.25, 0, -0.75, -5.25, 0, 0.75, -5.25, 0, 2.25, -5.25, 0, 3.75, -5.25, 0, 5.25, -5.25, 0 ]))).setColor(x3dpsail.Color().setColor( x3dpsail.MFColor( [0.5, 0.5, 0.5, 0.75, 0.75, 0.75]))))))) X3D0.toFileX3D("./future/./gridBack_RoundTrip.x3d")