Menu

#262 [PATCH]RCC coreinterface implementation

Incomplete
unread
5
2014-04-09
2014-04-09
No

I've started working on the rcc implementation, however I don't think it's a good idea to write it into a single patch, it will be too large, I will add several.

So far I have just written the CircularCylinder.h

1 Attachments

Discussion

  • Andrei Popescu

    Andrei Popescu - 2014-04-09

    Daniel,

    I don't exactly understand that internal pointer issue. I looked at rt_rhc_internal and it seems to be defined in usr/brlcad/include/brlcad/rtgeom.h
    My understanding is that the coreinterface primitive "takes it from there".
    However, there is no rt_rcc_internal and I'm not sure if I should make one or use the more general one (tgc)

    I only implemented the implicit constructor as I ran into this problem. I attached the 'implementation'.

    Thanks,
    Andrei

     
    • Daniel Roßberg

      Daniel Roßberg - 2014-04-09

      The core-interface provides wrapper classes for these rt_~_internal structures. The goal is to have for each of these structures a wrapper.

       
  • Sean Morrison

    Sean Morrison - 2014-04-09

    The rcc primitives are indeed stored as tgc. Note the groupings on that indicate some sort of relation: http://brlcad.org/gallery/diagrams/primitives

    The arb4 through arb8 (but not arbn) are all stored as arb8, for example. The sph, ell, and ell1 are stored as ell. All of the bottom left conics are stored as tgc.

    This is done for input simplicity and (in some cases) optimized ray tracing performance.

     
  • Daniel Roßberg

    Daniel Roßberg - 2014-04-09

    Andrei,

    The primitive to implement is the tgc. rcc is only a special constructor then. See Arb8.h and Ellipsoid.h for examples of such special contructors for the cases mentioned by Sean.

    Daniel

     

Log in to post a comment.