#Inventor V2.0 ascii # generated by /users/msimkin/bin/drawiv.pl # part of HoloDraw; download the latest version from http://holodraw.org # this is an example showing how to draw a polygon # using three points, i.e. a filled triangle # set the color for subsequent objects to ORANGE # draw one ORANGE polygon with 3 points Separator { BaseColor { rgb [ 1 0.6 0 ] } Coordinate3 { point [ 0 0 0, 3 4 5, 3 2 1 ] } IndexedFaceSet { coordIndex [ 0, 1, 2 ] } } # -------------------------------------------------------------------- # Begin bounding box from 0 0 0 to 3 4 5 # (/users/msimkin/bin/drawbbox.pl calculated default fontheight = 0.25) # (/users/msimkin/bin/drawbbox.pl calculated default speed = 0.1) # bounding box color will be '0 0 1' (the last color specified in input to drawbbox.pl) # draw the axis lines that run in the X direction from 0 to 3 Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 0, 3 0 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis S Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 5, 3 0 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis R Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 4 0, 3 4 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis N Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 4 5, 3 4 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis M # draw tickmarks every 1 along X lines from 0 to 3 Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 0, 0 -0.5 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 0 -0.5 0 } Text2 { string "0" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 1 0 0, 1 -0.5 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 1 -0.5 0 } Text2 { string "1" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 2 0 0, 2 -0.5 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 2 -0.5 0 } Text2 { string "2" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 0 0, 3 -0.5 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 -0.5 0 } Text2 { string "3" justification RIGHT } } # draw the axis lines that run in the Y direction from 0 to 4 Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 0, 0 4 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis W Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 5, 0 4 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis V Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 0 0, 3 4 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis E Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 0 5, 3 4 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis D # draw tickmarks every 1 along Y lines from 0 to 4 Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 5, -0.5 0 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation -0.5 0 5 } Text2 { string "0" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 1 5, -0.5 1 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation -0.5 1 5 } Text2 { string "1" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 2 5, -0.5 2 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation -0.5 2 5 } Text2 { string "2" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 3 5, -0.5 3 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation -0.5 3 5 } Text2 { string "3" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 4 5, -0.5 4 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation -0.5 4 5 } Text2 { string "4" justification RIGHT } } # draw the axis lines that run in the Z direction from 0 to 5 Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 0 0, 0 0 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis Z Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 0 4 0, 0 4 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis I Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 0 0, 3 0 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis J Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 0, 3 4 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } # axis H # draw tickmarks every 1 along Z lines from 0 to 5 Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 0, 3 4.5 0 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 4.5 0 } Text2 { string "0" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 1, 3 4.5 1 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 4.5 1 } Text2 { string "1" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 2, 3 4.5 2 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 4.5 2 } Text2 { string "2" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 3, 3 4.5 3 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 4.5 3 } Text2 { string "3" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 4, 3 4.5 4 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 4.5 4 } Text2 { string "4" justification RIGHT } } Separator { DrawStyle { lineWidth 1 } BaseColor { rgb [ 0 0 1 ] } Coordinate3 { point [ 3 4 5, 3 4.5 5 ] } IndexedLineSet { coordIndex [ 0, 1 ] } } Separator { BaseColor { rgb [ 0 0 1 ] } Font { name "Times-Roman" size 12 } Transform { translation 3 4.5 5 } Text2 { string "5" justification RIGHT } } # End bounding box from 0 0 0 to 3 4 5 # --------------------------------------------------------------------