Revision 23458 branches/v2_0_0_prep/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgPolyline3D.java
DwgPolyline3D.java | ||
---|---|---|
401 | 401 |
gp.moveTo(new Double(((Point2D)vertice).getX()).floatValue(), |
402 | 402 |
new Double(((Point2D)vertice).getY()).floatValue()); |
403 | 403 |
} |
404 |
} else { |
|
405 |
if(vertice instanceof double[]){ |
|
406 |
gp.lineTo(new Double(((double[])vertice)[0]).floatValue(),new Double(((double[])vertice)[1]).floatValue()); |
|
407 |
} else if (vertice instanceof Point2D){ |
|
408 |
gp.lineTo(new Double(((Point2D)vertice).getX()).floatValue(), |
|
409 |
new Double(((Point2D)vertice).getY()).floatValue()); |
|
410 |
} |
|
404 | 411 |
} |
405 |
if(vertice instanceof double[]){ |
|
406 |
gp.lineTo(new Double(((double[])vertice)[0]).floatValue(),new Double(((double[])vertice)[1]).floatValue()); |
|
407 |
} else if (vertice instanceof Point2D){ |
|
408 |
gp.lineTo(new Double(((Point2D)vertice).getX()).floatValue(), |
|
409 |
new Double(((Point2D)vertice).getY()).floatValue()); |
|
410 |
} |
|
411 | 412 |
} |
412 | 413 |
if (is3DFile) { |
413 | 414 |
return gFactory.createPolyline3D(gp,getPZ()); |
Also available in: Unified diff