воскресенье, 26 июня 2016 г.

Week 5 Report.

I have declined the idea of starting implementing R13-14 support because R15 still misses some necessary capabilities, and they should be done earlier than adding support for a new version. Also, the differences between R15 and R13/R14 are pretty small, and implementing them will not be a difficult task.

1. This week I've done:
Libopencad changes:
- Fixed failing on geometry reading tests (if library was compiled with GCC).
- Fixed Travis-CI build (now it works properly).

OGR CAD Driver changes:
- Added LWPolyline, Polyline3D (polylines does not support 'tesselation' yet), Text, MText (texts are presented as single point with filled "Text" attribute field), Ellipse support.
- Changed VSIF...() functions calls to VSIF...L().

2. Plan on doing next week:
Implement methods to extract info about coordinate system from file, or from associated .prj file.
Add tesselation to polylines. Add spline geometry support in driver. Start on implementing reading of ExtendedEntityData and adding its support to CAD Driver.

3. Blocking:
None, but Hatch geometry is pretty complex to implement, I am still working on it (will be done in next 2-3 days). Also, WIPEOUT geometry (which sometimes can be seen in DWG files) has no description in ODA DWG Specs.

Links:


воскресенье, 19 июня 2016 г.

Week 4 Report.

1. This week I've done:

Libopencad is extended with:
- 2 new geometry types: ATTDEF and ATTRIB.
- Color is now a geometry attribute, so, it can be got by calling CADGeometry->getColor() (returns RGBColor struct).
- Libopencad docs prototype can be seen there (a lot of things are missed).

OGR CAD Driver extended with:
- All libopencad's file I/O was rewritten using VSIF.
- Arc, Face3D geometries.
- Now geometry color is attribute (given as IntegerList in RGB format).

2. Plan on doing next week:
Previous week tasks: add Polyline3D, LWPolyline, Ellipse support to CAD Driver.
Add hatch geometry to libopencad. Implement dimensions library output representation. Start working on R13-R14 DWG support.

3. Blocking:
None.

Links:

суббота, 11 июня 2016 г.

Week 3 Report.


1. This week I've done:
Implemented CAD OGR Driver, now it can read points/lines/circles received from libopencad.
Since libopencad is written in C++11, I’ve added a check in configure tool which tests whether C++ compiler supports C++11. If it does, CAD driver will be a built-in, or disabled if no support is provided.

Now, ogrinfo can open .DWG files (only supported versions by libopencad).
Example:
File opening errors are also handled:

2. Plan on doing next week:
Rewrite libopencad’s file I/O with VSIF functions (now it uses fstream).
Increase driver geometries pool with ellipses, lwpolylines, 3dpolylines. Start implementing doxygen to libopencad.

3. Blocking:
None.

Links:

суббота, 4 июня 2016 г.

Week 2 Report.

This week we've changed the development direction with my mentor (Dmitry Baryshnikov). Now, library (libopencad) development is 'freezed' in some kind, and I am starting developing OGR driver.
  1. This week I've done:
1. Implemented Linetypes reading (but they are not associated with drawing objects still). Implemented google tests for reading large files (with big amount of objects) - for lwpolylines and 3dpolylines.
2. A little code refactoring.

2. Plan on doing next week: Implement linetypes for objects, extend supported geometries list with new ones. Code refactoring.
Write driver 'skeleton', and try to integrate libopencad.

3. Blocking:
None, but since I am not very familiar with OGR driver implementation - I am slowed down by this fact.