OK, now my 2 ¢:

The container (this is what rt_curve is for the sketch) segments could be:
- line_seg (already defined)
- carc_seg (already defined)
- text (to be defined)
- beizer and nurb to be added later on

And:
- annotation_internal
    - uint32_t magic;
    - point_t V; // maps to the origin in the 2D system.
    - size_t vert_count; // no. of vertices
    - point2d_t *verts; // array of vertices that serve as control points
    (- the container struct)

Looks like we are very close :)


Regards,
    Daniel



2017-04-15 22:36 GMT+02:00 Shubham Rathore <shubhamrathore1...@gmail.com>:
> Regarding the container for annotations:
> This is what I thought the container to look like-
>
> - line_seg (already defined)
> - carc_seg(already defined)
> - beizer and nurb to be added later on
>
> - annotation_internal
>     - uint32_t magic;
>     - point_t O; // maps to the origin in the 2D system.
>     - size_t ver_count; // no. of vertices
>     - point_t *ver; // array of vertices that serve as control points
>     - struct bu_vls label; // text and symbols- UNICODE
>
> Is there something more that I need to add as of now ?
>
> Regards,
> Shubham Rathore(:gabbar1947)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to