随笔分类 -  计算机图形学

摘要:平面上点的旋转 在平面坐标上,任意点P(x1,y1),绕一个坐标点Q(x2,y2)逆时针旋转θ角度后,新的坐标设为(x, y)的计算公式: x= (x1 - x2)*cos(θ) - (y1 - y2)*sin(θ) + x2 y= (x1 - x2)*sin(θ) + (y1 - y2)*cos( 阅读全文
posted @ 2023-06-25 20:39 西北逍遥 阅读(392) 评论(0) 推荐(0) 编辑
摘要:基于BIM与点云数据的塔吊仿真系统 ########################### 阅读全文
posted @ 2022-05-13 20:30 西北逍遥 阅读(117) 评论(0) 推荐(0) 编辑
摘要:塔吊花车移动计算 void TowerPanel::slotMoveSlider(int sliderValue) { slider_length = sliderValue*1.0f; hook_position_x = center_x*(-0.0f) + slider_length*cos(a 阅读全文
posted @ 2022-05-06 20:40 西北逍遥 阅读(41) 评论(0) 推荐(0) 编辑
摘要:threejs绘制三角面 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>ifc三维场景</title> <style> body { margin: 0; overflow: hidden; } </s 阅读全文
posted @ 2022-01-06 12:28 西北逍遥 阅读(508) 评论(0) 推荐(0) 编辑
摘要:osg::Geode* createIfcPolygon2() { osg::Geode* geode = new osg::Geode(); //face 8 { osg::Geometry* geom_face1 = new osg::Geometry(); osg::Vec3Array* co 阅读全文
posted @ 2021-11-12 18:34 西北逍遥 阅读(140) 评论(0) 推荐(0) 编辑
摘要:osg绘制圆柱体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUti 阅读全文
posted @ 2021-10-11 11:25 西北逍遥 阅读(449) 评论(0) 推荐(0) 编辑
摘要:osg绘制圆锥体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUti 阅读全文
posted @ 2021-10-03 11:52 西北逍遥 阅读(494) 评论(0) 推荐(0) 编辑
摘要:osg绘制球体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUtil 阅读全文
posted @ 2021-10-02 12:15 西北逍遥 阅读(908) 评论(0) 推荐(0) 编辑
摘要:基于BIM IFC osg的塔吊吊装对位模拟系统 osg::Matrix cameraMatrix = osg::Matrix::translate(-centerVec3d) *osg::Matrix::scale(1.0f, 1.0f, sz_value) *osg::Matrix::trans 阅读全文
posted @ 2021-10-01 21:19 西北逍遥 阅读(261) 评论(0) 推荐(0) 编辑
摘要:osg控制相机移动 viewer->getCameraManipulator()->setHomePosition(_homeEye,_homeCenter,_homeUp); osg::Vec3d _homeEye; osg::Vec3d _homeCenter; osg::Vec3d _home 阅读全文
posted @ 2021-09-27 20:09 西北逍遥 阅读(658) 评论(0) 推荐(0) 编辑
摘要:osg绘制胶囊体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUti 阅读全文
posted @ 2021-09-27 08:11 西北逍遥 阅读(107) 评论(0) 推荐(0) 编辑
摘要:osg抓图、截图、保存图片 #include <osgViewer/Viewer> #include <osgViewer/ViewerBase> #include <osgViewer/GraphicsWindow> #include <osg/Node> #include <osg/Geode> 阅读全文
posted @ 2021-09-25 16:35 西北逍遥 阅读(302) 评论(0) 推荐(0) 编辑
摘要:osg截取场景图片 #include <osgViewer/Viewer> #include <osgViewer/ViewerBase> #include <osgViewer/GraphicsWindow> #include <osg/Node> #include <osg/Geode> #in 阅读全文
posted @ 2021-09-25 12:03 西北逍遥 阅读(507) 评论(0) 推荐(0) 编辑
摘要:osg实现三视图 #include <osg/Geode> #include <osg/Geometry> #include <osg/LineWidth> #include <osgViewer/Viewer> #include <osgViewer/CompositeViewer> #inclu 阅读全文
posted @ 2021-09-24 16:21 西北逍遥 阅读(531) 评论(0) 推荐(0) 编辑
摘要:自己开发一款能够绘制简单三维模型的软件 ####################### 阅读全文
posted @ 2021-09-07 21:27 西北逍遥 阅读(312) 评论(0) 推荐(0) 编辑
摘要:方块 # This file uses centimeters as units for non-parametric coordinates. mtllib 2021090201.mtl g default v -3400.000000 -3400.000000 3400.000000 v 340 阅读全文
posted @ 2021-09-02 17:27 西北逍遥 阅读(101) 评论(0) 推荐(0) 编辑
摘要:shader复习 // Created by inigo quilez - iq/2015 // I share this piece (art and code) here in Shadertoy and through its Public API, only for educational 阅读全文
posted @ 2021-08-25 16:24 西北逍遥 阅读(91) 评论(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 西北逍遥 阅读(692) 评论(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 西北逍遥 阅读(431) 评论(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 西北逍遥 阅读(720) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示