public void readDwgVertex2DV15 ( int [ ] data , int offset ) throws Exception { //System.out.println("readDwgVertex2D executing ..."); int bitPos = offset ; bitPos = readObjectHeaderV15 ( data , bitPos ) ; Vector v = DwgUtil . getRawChar ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; int flags = ( ( Integer ) v . get ( 1 ) ) . intValue ( ) ; this . flags = flags ; v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; double x = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; double y = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; double z = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; double [ ] coord = new double [ ] { x , y , z } ; point = new double [ ] { x , y , z } ; v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; double sw = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; double ew = 0.0 ; if ( sw < 0.0 ) { ew = Math . abs ( sw ) ; sw = ew ; } else { v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; ew = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; } initWidth = sw ; endWidth = ew ; v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; double bulge = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; this . bulge = bulge ; v = DwgUtil . getBitDouble ( data , bitPos ) ; bitPos = ( ( Integer ) v . get ( 0 ) ) . intValue ( ) ; double tandir = ( ( Double ) v . get ( 1 ) ) . doubleValue ( ) ; tangentDir = tandir ; bitPos = readObjectTailV15 ( data , bitPos ) ; }
Read a Vertex2D in the DWG format Version 15