Menu

#525 annotation always points to the origion

Incomplete
closed-rejected
None
5
2019-06-09
2019-05-22
ali haydar
No

I think there were an error entering the annotated point to the vlist .

1 Attachments

Discussion

  • Daniel Roßberg

    Daniel Roßberg - 2019-05-22

    Hm, it doesn't compile:

    In file included from /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c:38:
    /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c: In function ‘seg_to_vlist’:
    /home/rossberg/Devel/BRL-CAD/brlcad/include/vmath.h:874:9: error: assignment to expression with array type
      (o)[X] = (v)[X]; \
             ^
    /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c:338:5: note: in expansion of macro ‘VMOVE’
         VMOVE(annot_point, annot_ip->V);
         ^~~~~
    /home/rossberg/Devel/BRL-CAD/brlcad/include/vmath.h:875:9: error: assignment to expression with array type
      (o)[Y] = (v)[Y]; \
             ^
    /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c:338:5: note: in expansion of macro ‘VMOVE’
         VMOVE(annot_point, annot_ip->V);
         ^~~~~
    /home/rossberg/Devel/BRL-CAD/brlcad/include/vmath.h:876:9: error: assignment to expression with array type
      (o)[Z] = (v)[Z]; \
             ^
    /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c:338:5: note: in expansion of macro ‘VMOVE’
         VMOVE(annot_point, annot_ip->V);
         ^~~~~
    /home/rossberg/Devel/BRL-CAD/brlcad/include/vmath.h:945:18: error: invalid operands to binary + (have ‘fastf_t’ {aka ‘double’} and ‘fastf_t *’ {aka ‘double *’})
      (o)[X] = (a)[X] + (b)[X]; \
               ~~~~~~ ^
    /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c:356:6: note: in expansion of macro ‘V2ADD2’
          V2ADD2(pt, V, annot_point);
          ^~~~~~
    /home/rossberg/Devel/BRL-CAD/brlcad/include/vmath.h:946:18: error: invalid operands to binary + (have ‘fastf_t’ {aka ‘double’} and ‘fastf_t *’ {aka ‘double *’})
      (o)[Y] = (a)[Y] + (b)[Y]; \
               ~~~~~~ ^
    /home/rossberg/Devel/BRL-CAD/brlcad/src/librt/primitives/annot/annot.c:356:6: note: in expansion of macro ‘V2ADD2’
          V2ADD2(pt, V, annot_point);
          ^~~~~~
    
     
  • ali haydar

    ali haydar - 2019-05-25

    sorry for the mistake

     
  • Daniel Roßberg

    Daniel Roßberg - 2019-05-27

    This doesn't fix anything.

     
  • Daniel Roßberg

    Daniel Roßberg - 2019-06-09
    • status: open --> closed-rejected
     

Log in to post a comment.