On 5/21/06, Gustavo Wagner <[EMAIL PROTECTED]> wrote:
I you want to make submissions then you'll need to supply whole files, and send them to osg-submissions. Have a read through SubmissionsProtocol on the website.
As for the this specific bit of code, I'm kinda suprised.... What does trim mean??? Trim to what???
Knowing C++ I know what you are trying to do, but the method name doesn't imply this, and the OSG way is to name obscure features withLongNamesSoThatUsersCanWorkOutWhatTheyMeanWithoutHavingToBeingOriginalTheAuthor
Could I asking what you actually need this feature? And why just using the underlying std::vector<> isn't sufficient?
Robert.
Robert, I think we really could have a trim() method in OSG's Array class. Resizing the vector with v.resize( v.size() ) and other methods are not working as expected. This simple method inside osg::TemplateArray() would do what we need in a very efficient way:
inline void trim()
{
std::vector<T>( * this ).swap( *this );
}
Could you add it, please?
I you want to make submissions then you'll need to supply whole files, and send them to osg-submissions. Have a read through SubmissionsProtocol on the website.
As for the this specific bit of code, I'm kinda suprised.... What does trim mean??? Trim to what???
Knowing C++ I know what you are trying to do, but the method name doesn't imply this, and the OSG way is to name obscure features withLongNamesSoThatUsersCanWorkOutWhatTheyMeanWithoutHavingToBeingOriginalTheAuthor
Could I asking what you actually need this feature? And why just using the underlying std::vector<> isn't sufficient?
Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
