随笔分类 - openscenegraph(osg)
摘要:看了半天,没看明白是怎么实现的! ReaderWriter::ReadResult readNode(const std::string& fileName,const Options* options, bool buildKdTreeIfRequired=true) { ReaderWriter
阅读全文
摘要:osg绘制圆 自定义圆的半径,然后根据圆的计算公式 X2 +Y2=R2 (圆的标准方程)生成圆周上的每个坐标点 float getY(int x,bool isPositive) { float y = 0.0f; if (isPositive) { y = sqrt((radius*radius)
阅读全文
摘要:osg绘制立方体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUti
阅读全文
摘要:/* -*-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
阅读全文
摘要:“TeslaManage.exe”(Win32): 已加载“F:\TeslaManageProject\TeslaManage\x64\Debug\TeslaManage.exe”。已加载符号。“TeslaManage.exe”(Win32): 已加载“C:\Windows\System32\ntd
阅读全文
摘要:基于ifc数据的bim模型吊装模拟-1 IfcWallStandardCase IfcColumn
阅读全文
摘要:ifc中的IfcWallStandardCase构件
阅读全文
摘要:wall_node = (osg::Node*)(index_node->clone(osg::CopyOp::DEEP_COPY_ALL));vc_mobileCrane->tranMoveIndex->addChild(wall_node);
阅读全文
摘要:osg::Node节点移动的时候,可以使用osg::Matrix::translate 来完成 osg::Matrix::translate中的参数是 当前位置到目标位置需要改变的值,所以,传递参数的时候需要传入目标节点位置减去当前位置的差值。 ifc node节点移动
阅读全文
摘要:root_group->addChild(node22); osg::Vec3f vec3f1 = node22->getBound().center(); osg::NodePathList nodePAthList1 = node22->getParentalNodePaths(); osg::
阅读全文
摘要:深度拷贝 node.clone(osg::CopyOp::DEEP_COPY_ALL) osg::ref_ptr<osg::Node> deepnode = (osg::Node *)(node->clone(osg::CopyOp::DEEP_COPY_ALL));
阅读全文
摘要:直接使用osg渲染ifc数据,提高渲染速度。 #include "teslamanage.h" #include <QtWidgets/QApplication> #include <QtGui/QIcon> #include <osgViewer/Viewer> osg::ref_ptr<osg:
阅读全文
摘要:/* -*-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
阅读全文
摘要:/* -*-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...
阅读全文
摘要:node->getBound().center() * osg::computeLocalToWorld(node->getParentalNodePaths()[0]) 不知为啥, hNode2->getParentalNodePaths(0);一直报错 Program: ...laManageP
阅读全文
摘要:1> 已启动全部重新生成: 项目: TeslaManage, 配置: Debug x64 1> Moc'ing teslamanage.h...1> Uic'ing teslamanage.ui...1> Moc'ing VCArmEventHandler.h...1> Moc'ing vcgant
阅读全文
摘要:void MobileCrane::rotateRope2() { //double r_angle1 = rotateRope + rorate3; //std::cout setMatrix(osg::Matrix::rotate(osg::DegreesToRadians(rotateRope), 0, 1, 0)); ropeMatrix = osg::Matri...
阅读全文
摘要:osg::Vec3f vec3f1 = hookNode->getBound().center(); osg::NodePathList nodePAthList1 = hookNode->getParentalNodePaths(0); updateHookPosition_20190914(vec3f1, nodePAthList1); osg::Vec3 point3 = vec3f1 *...
阅读全文