Changeset 531


Ignore:
Timestamp:
10/22/10 17:09:49 (19 months ago)
Author:
ddangelo
Message:

Index and RatioList? of intersections added

Location:
trunk/avango-osg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/include/avango/osg/Intersection.h

    r414 r531  
    7272      SFVec3 Normal; 
    7373 
     74      /** 
     75       * List containing the indices of the intersected geometry. 
     76       */ 
     77      MFUInt IndexList; 
     78 
     79      /** 
     80       * Ratios between the vertices in IndexList to get the actual intersection point. 
     81       */ 
     82      MFDouble RatioList; 
     83 
    7484    protected: 
    7585      /** 
  • trunk/avango-osg/src/avango/osg/Intersection.cpp

    r414 r531  
    4141  AV_FC_ADD_FIELD(Point, ::osg::Vec3(0.0, 0.0, 0.0)); 
    4242  AV_FC_ADD_FIELD(Normal, ::osg::Vec3(0.0, 0.0, 0.0)); 
     43  AV_FC_ADD_FIELD(IndexList, std::vector<unsigned int>()); 
     44  AV_FC_ADD_FIELD(RatioList, std::vector<double>()); 
    4345} 
    4446 
Note: See TracChangeset for help on using the changeset viewer.