Revision 11057
branches/v10/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgPolyline3D.java | ||
---|---|---|
332 | 332 |
public IGeometry toFMapGeometry(boolean is3DFile) { |
333 | 333 |
FPolyline2D pline = null; |
334 | 334 |
List points3D = getPts(); |
335 |
if (points3D != null) { |
|
335 |
if (points3D != null && points3D.size() > 0) {
|
|
336 | 336 |
if (is3DFile) { |
337 | 337 |
pline = FMapUtil.points3DToFPolyline3D(points3D); |
338 | 338 |
} else { |
... | ... | |
345 | 345 |
} |
346 | 346 |
pline = FMapUtil.points2DToFPolyline2D(points2D); |
347 | 347 |
}//if |
348 |
return ShapeFactory.createGeometry(pline); |
|
348 | 349 |
}//if |
349 |
return ShapeFactory.createGeometry(pline); |
|
350 |
return null; |
|
351 |
|
|
350 | 352 |
} |
351 | 353 |
/* (non-Javadoc) |
352 | 354 |
* @see com.iver.cit.jdwglib.dwg.IDwg2FMap#toFMapString(boolean) |
Also available in: Unified diff