摘要: // 由一组点集生成一张三角面片网格Geometry osg::Geometry* createTRIANGLESGeometry(MyMesh &mesh) { osg::ref_ptr triGeom = new osg::Geometry(); ... 阅读全文
posted @ 2015-06-19 09:49 酷熊 阅读(844) 评论(0) 推荐(0) 编辑
摘要: struct Subset{ std::vector vertexs;//位置 std::vector normals;//法向 std::vector texCoords;//纹理 std::vector indices;//索引下标 std::vector face... 阅读全文
posted @ 2015-06-19 09:48 酷熊 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include //只能处理osgExp插件导出的单个ive文件class InsideLODVisitor : public osg::NodeVisitor{public: InsideLODVisito... 阅读全文
posted @ 2015-06-19 09:46 酷熊 阅读(1244) 评论(0) 推荐(0) 编辑