当前位置: 首页 > news >正文

自己做网站 为什么出现403网站长期外包

自己做网站 为什么出现403,网站长期外包,少女大人免费观看高清电视剧韩剧,环保主题网站模板前一段事件看到VTK的一个例子#xff1a; 该案例是vtk.js写的#xff0c;觉得很有意思#xff0c;个人正好也要用到#xff0c;于是萌生了用C修改VTK源码来实现该功能的想法。原本以为很简单#xff0c;只需要修改一下vtkResliceCursor就可以了#xff0c;加上小球#…        前一段事件看到VTK的一个例子 该案例是vtk.js写的觉得很有意思个人正好也要用到于是萌生了用C修改VTK源码来实现该功能的想法。原本以为很简单只需要修改一下vtkResliceCursor就可以了加上小球加上几个Actor就能实现没想到该功能整花了我差不多一个月的时间。但也学到了不少知识下面就该功能的实现效果和方法做个大致解说 我实现的效果 实现方法 1首先在vtkResliceCursor中定义六个小球的位置。因为是XYZ三个轴每个轴上两个小球所以总共有六个小球。代码 void vtkResliceCursor::BuildCursorGeometryWithoutHole() {// 其他源码省略.......for (int i 0; i 3; i){//wulc{this-SpherePoints[0][i] this-Center[i] - sphereLength * this-XAxis[i];this-SpherePoints[1][i] this-Center[i] sphereLength * this-XAxis[i];this-SpherePoints[2][i] this-Center[i] - sphereLength * this-YAxis[i];this-SpherePoints[3][i] this-Center[i] sphereLength * this-YAxis[i];this-SpherePoints[4][i] this-Center[i] - sphereLength * this-ZAxis[i];this-SpherePoints[5][i] this-Center[i] sphereLength * this-ZAxis[i];}}// 其他源码省略....... }sphereLength 是一个自定义的常数也就是中心到小球的距离。可以是 30 40 50 .。。。。 除此之外我们还要定义一个函数通过该函数可以获取这六个小球的坐标。比如 GetPointPosition(double p[6][3]); 2,在vtkResliceCursorPicker中判断鼠标是否靠近小球中心位置靠近小球坐标时将鼠标光标变为手掌形状。判断方法就是鼠标的位置和小球位置的距离其中有现成的代码 /----------------wulc--------------------------------------------------- int vtkResliceCursorPicker::IntersectPointWithPoint(double p1[3], double p2[3], double Points[], double tol) {double pts[6][3] { {0,0,0} };for (size_t i 0; i 6; i){pts[i][0] Points[3*i];pts[i][1] Points[3*i 1];pts[i][2] Points[3 * i 2];}int j 0;for ( ; j 6; j){double X[4] { pts[j][0], pts[j][1], pts[j][2], 1 };int i;double ray[3], rayFactor, projXYZ[3];for (i 0; i 3; i){ray[i] p2[i] - p1[i];}if ((rayFactor vtkMath::Dot(ray, ray)) 0.0){return 0;}const double t (ray[0] * (X[0] - p1[0]) ray[1] * (X[1] - p1[1]) ray[2] * (X[2] - p1[2])) / rayFactor;if (t 0.0 t 1.0){for (i 0; i 3; i){projXYZ[i] p1[i] t * ray[i];if (fabs(X[i] - projXYZ[i]) tol){break;}}if (i 2) // within tolerance{return 1;}}}return 0; } 3最后要在vtkResliceCursorActor类中添加小球代码 //wulcif (this-Renderer nullptr) return;if (axisNormal 1)//x-z平面{double* position this-CursorAlgorithm-GetResliceCursor()-GetSpherePostion(2);if (fabs(position[0] - 0.0) 0.001 || fabs(position[1] - 0.0) 0.001 || fabs(position[2] - 0.0) 0.001){this-SphereActor[2]-GetProperty()-SetColor(1, 0, 0);this-SphereActor[3]-GetProperty()-SetColor(1, 0, 0);this-SphereActor[2]-SetPosition(position[0], position[1], position[2]);this-SphereActor[3]-SetPosition(position[3], position[4], position[5]);position this-CursorAlgorithm-GetResliceCursor()-GetSpherePostion(0);this-SphereActor[0]-GetProperty()-SetColor(0, 0, 1);this-SphereActor[1]-GetProperty()-SetColor(0, 0, 1);this-SphereActor[0]-SetPosition(position[0], position[1], position[2]);this-SphereActor[1]-SetPosition(position[3], position[4], position[5]);}}else if (axisNormal 2)//x-y平面{double* position this-CursorAlgorithm-GetResliceCursor()-GetSpherePostion(0);if (fabs(position[0] - 0.0) 0.001 || fabs(position[1] - 0.0) 0.001 || fabs(position[2] - 0.0) 0.001){this-SphereActor[0]-GetProperty()-SetColor(0, 1, 0);this-SphereActor[1]-GetProperty()-SetColor(0, 1, 0);this-SphereActor[0]-SetPosition(position[0], position[1], position[2]);this-SphereActor[1]-SetPosition(position[3], position[4], position[5]);position this-CursorAlgorithm-GetResliceCursor()-GetSpherePostion(1);this-SphereActor[2]-GetProperty()-SetColor(1, 0, 0);this-SphereActor[3]-GetProperty()-SetColor(1, 0, 0);this-SphereActor[2]-SetPosition(position[0], position[1], position[2]);this-SphereActor[3]-SetPosition(position[3], position[4], position[5]);}}else if (axisNormal 0) //y-z平面{double* position this-CursorAlgorithm-GetResliceCursor()-GetSpherePostion(2);if (fabs(position[0] - 0.0) 0.001 || fabs(position[1] - 0.0) 0.001 || fabs(position[2] - 0.0) 0.001){this-SphereActor[0]-GetProperty()-SetColor(0, 1, 0);this-SphereActor[1]-GetProperty()-SetColor(0, 1, 0);this-SphereActor[0]-SetPosition(position[0], position[1], position[2]);this-SphereActor[1]-SetPosition(position[3], position[4], position[5]);position this-CursorAlgorithm-GetResliceCursor()-GetSpherePostion(1);this-SphereActor[2]-GetProperty()-SetColor(0, 0, 1);this-SphereActor[3]-GetProperty()-SetColor(0, 0, 1);this-SphereActor[2]-SetPosition(position[0], position[1], position[2]);this-SphereActor[3]-SetPosition(position[3], position[4], position[5]);}} 这就可以了欢迎小伙伴能够一块讨论。
http://www.hkea.cn/news/14314287/

相关文章:

  • 注册域名 不建网站绿化工程属于建设工程吗
  • 谁告诉你j2ee是做网站的杭州seo网站排名优化
  • 设计一个网站花多少时间建设银行长清网站
  • 怎样做微课网站专业做效果图网站
  • 顺义专业建站公司新电商网站
  • 通了网站建设网页站点不安全怎么办
  • 西红门网站建设公司营站快车代理平台
  • 江西省住房城乡建设厅网站电子商务网站开发软件
  • 临桂区住房和城乡建设局门户网站网站设计报价是多少
  • 产品包装设计网站招聘信息如何发布
  • 杭州网站如何制作洛阳网站建设
  • 学做网站的书哪些好企业所得税退税怎么做账务处理
  • 廊坊网站排名优化公司哪家好免费咨询律师电话号码是多少
  • 北京门户网站有哪些焦作网站建设哪家便宜
  • 湖北省建设部网站公告微信小程序开发者文档
  • 二手交易网站建设内容策划广告创意设计案例
  • 贵州两学一做专题网站discuz 做论坛与网站
  • 建设银行网站公告在哪云南楚雄网
  • 关于中秋节网页设计实训报告seo网站建设步骤
  • 网站关站大学校园门户网站建设
  • 在小网站上做点击广告苏州市高新区建设局网站
  • 宝安网站优化wordpress主题acg
  • 优惠建网站蚌埠建设学校网站教育学校
  • 阳江市网站备案幕布网盘做网站空间
  • 网站做二级登录页面容易吗app制作软件平台
  • 网站建设招代理徐州企业建站系统模板
  • 知识产权网站模板完成职教集团网站建设
  • 郑州做网站托管wordpress缩略图 裁剪
  • 分析苏宁易购网站内容建设wordpress配置.htacess
  • 佛山建网站哪里好城市分站网站设计