- vertices->push_back(position.osg());
- vertices->push_back((position + perp1).osg());
- vertices->push_back((position + perp2).osg());
- colors->push_back(visibleColor.osg());
- colors->push_back(invisibleColor.osg());
- colors->push_back(invisibleColor.osg());
+ vertices->push_back(toOsg(position));
+ vertices->push_back(toOsg(position + perp1));
+ vertices->push_back(toOsg(position + perp2));
+ colors->push_back(toOsg(visibleColor));
+ colors->push_back(toOsg(invisibleColor));
+ colors->push_back(toOsg(invisibleColor));