随笔分类 -  openscenegraph(osg)

上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要:看了半天,没看明白是怎么实现的! ReaderWriter::ReadResult readNode(const std::string& fileName,const Options* options, bool buildKdTreeIfRequired=true) { ReaderWriter 阅读全文
posted @ 2021-09-02 21:00 西北逍遥 阅读(74) 评论(0) 推荐(0)
摘要:osg绘制圆 自定义圆的半径,然后根据圆的计算公式 X2 +Y2=R2 (圆的标准方程)生成圆周上的每个坐标点 float getY(int x,bool isPositive) { float y = 0.0f; if (isPositive) { y = sqrt((radius*radius) 阅读全文
posted @ 2021-08-19 20:45 西北逍遥 阅读(725) 评论(0) 推荐(0)
摘要:osg绘制立方体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUti 阅读全文
posted @ 2021-08-10 10:33 西北逍遥 阅读(445) 评论(0) 推荐(0)
摘要:/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OS 阅读全文
posted @ 2019-11-26 18:55 西北逍遥 阅读(675) 评论(0) 推荐(0)
摘要:osg::Group源码 阅读全文
posted @ 2019-11-25 14:52 西北逍遥 阅读(465) 评论(0) 推荐(0)
摘要:“TeslaManage.exe”(Win32): 已加载“F:\TeslaManageProject\TeslaManage\x64\Debug\TeslaManage.exe”。已加载符号。“TeslaManage.exe”(Win32): 已加载“C:\Windows\System32\ntd 阅读全文
posted @ 2019-11-11 07:50 西北逍遥 阅读(600) 评论(0) 推荐(0)
摘要:基于ifc数据的bim模型吊装模拟-1 IfcWallStandardCase IfcColumn 阅读全文
posted @ 2019-11-09 19:17 西北逍遥 阅读(473) 评论(1) 推荐(0)
摘要:ifc中的IfcWallStandardCase构件 阅读全文
posted @ 2019-11-08 18:46 西北逍遥 阅读(363) 评论(0) 推荐(0)
摘要:wall_node = (osg::Node*)(index_node->clone(osg::CopyOp::DEEP_COPY_ALL));vc_mobileCrane->tranMoveIndex->addChild(wall_node); 阅读全文
posted @ 2019-11-07 21:25 西北逍遥 阅读(223) 评论(0) 推荐(0)
摘要:osg::Node节点移动的时候,可以使用osg::Matrix::translate 来完成 osg::Matrix::translate中的参数是 当前位置到目标位置需要改变的值,所以,传递参数的时候需要传入目标节点位置减去当前位置的差值。 ifc node节点移动 阅读全文
posted @ 2019-11-07 15:57 西北逍遥 阅读(920) 评论(0) 推荐(0)
摘要:root_group->addChild(node22); osg::Vec3f vec3f1 = node22->getBound().center(); osg::NodePathList nodePAthList1 = node22->getParentalNodePaths(); osg:: 阅读全文
posted @ 2019-11-06 21:41 西北逍遥 阅读(212) 评论(0) 推荐(0)
摘要:深度拷贝 node.clone(osg::CopyOp::DEEP_COPY_ALL) osg::ref_ptr<osg::Node> deepnode = (osg::Node *)(node->clone(osg::CopyOp::DEEP_COPY_ALL)); 阅读全文
posted @ 2019-11-06 15:23 西北逍遥 阅读(787) 评论(0) 推荐(0)
摘要:直接使用osg渲染ifc数据,提高渲染速度。 #include "teslamanage.h" #include <QtWidgets/QApplication> #include <QtGui/QIcon> #include <osgViewer/Viewer> osg::ref_ptr<osg: 阅读全文
posted @ 2019-11-01 21:13 西北逍遥 阅读(726) 评论(1) 推荐(0)
摘要:/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OS 阅读全文
posted @ 2019-10-04 20:46 西北逍遥 阅读(309) 评论(0) 推荐(0)
摘要:/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public Lic... 阅读全文
posted @ 2019-10-03 21:53 西北逍遥 阅读(322) 评论(0) 推荐(0)
摘要:加入机械臂,做吊装模拟分析 阅读全文
posted @ 2019-10-03 09:38 西北逍遥 阅读(245) 评论(0) 推荐(0)
摘要:node->getBound().center() * osg::computeLocalToWorld(node->getParentalNodePaths()[0]) 不知为啥, hNode2->getParentalNodePaths(0);一直报错 Program: ...laManageP 阅读全文
posted @ 2019-10-02 20:56 西北逍遥 阅读(437) 评论(0) 推荐(0)
摘要:1> 已启动全部重新生成: 项目: TeslaManage, 配置: Debug x64 1> Moc'ing teslamanage.h...1> Uic'ing teslamanage.ui...1> Moc'ing VCArmEventHandler.h...1> Moc'ing vcgant 阅读全文
posted @ 2019-10-01 10:06 西北逍遥 阅读(545) 评论(0) 推荐(0)
摘要:void MobileCrane::rotateRope2() { //double r_angle1 = rotateRope + rorate3; //std::cout setMatrix(osg::Matrix::rotate(osg::DegreesToRadians(rotateRope), 0, 1, 0)); ropeMatrix = osg::Matri... 阅读全文
posted @ 2019-09-15 18:53 西北逍遥 阅读(216) 评论(0) 推荐(0)
摘要:osg::Vec3f vec3f1 = hookNode->getBound().center(); osg::NodePathList nodePAthList1 = hookNode->getParentalNodePaths(0); updateHookPosition_20190914(vec3f1, nodePAthList1); osg::Vec3 point3 = vec3f1 *... 阅读全文
posted @ 2019-09-14 11:56 西北逍遥 阅读(1010) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 9 下一页