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

网站优化 seo灰色行业关键词推广

网站优化 seo,灰色行业关键词推广,bi平台开发制作,自己做个网站要多少钱目录 一、gen_robot_tool_and_base_object_model_3d 函数调用二、gen_arrow_object_model_3d 函数调用 首先说明一下这部分代码在find_box_3d这个例程中,非常好用的一个坐标系生成函数。 一、gen_robot_tool_and_base_object_model_3d 函数调用 RobotToolSize : 0.…

目录

  • 一、gen_robot_tool_and_base_object_model_3d 函数调用
  • 二、gen_arrow_object_model_3d 函数调用

首先说明一下这部分代码在find_box_3d这个例程中,非常好用的一个坐标系生成函数。

一、gen_robot_tool_and_base_object_model_3d 函数调用

RobotToolSize := 0.03
gen_robot_tool_and_base_object_model_3d (RobotToolSize * 0.05, RobotToolSize, OM3DToolOrigin, OM3DBase)
* This procedure creates 3D models that represent the tool and the base
* of the robot.
* 
if (ArrowThickness <= 0)throw ('ArrowThickness should be > 0')
endif
if (ArrowLength <= 0)throw ('ArrowLength should be > 0')
endif
create_pose (0, 0, 0, 0, 0, 0, 'Rp+T', 'gba', 'point', IdentityPose)
* 
* 3D model for the tool.
create_pose (ArrowLength, 0, 0, 0, 0, 0, 'Rp+T', 'gba', 'point', TransXPose)
gen_arrow_object_model_3d (ArrowThickness, IdentityPose, TransXPose, OM3DToolXOrigin)
create_pose (0, ArrowLength, 0, 0, 0, 0, 'Rp+T', 'gba', 'point', TransYPose)
gen_arrow_object_model_3d (ArrowThickness, IdentityPose, TransYPose, OM3DToolYOrigin)
create_pose (0, 0, ArrowLength, 0, 0, 0, 'Rp+T', 'gba', 'point', TransZPose)
gen_arrow_object_model_3d (ArrowThickness, IdentityPose, TransZPose, OM3DToolZOrigin)
OM3DToolOrigin := [OM3DToolXOrigin,OM3DToolYOrigin,OM3DToolZOrigin]
* 
* 3D model for the base.
FactorVisBase := ArrowThickness * 10
gen_box_object_model_3d (IdentityPose, FactorVisBase * 1.5, FactorVisBase * 1.5, FactorVisBase / 12.0, OM3DBasePlate)
create_pose (ArrowLength, 0, 0, 0, 0, 0, 'Rp+T', 'gba', 'point', TransXPose)
gen_arrow_object_model_3d (ArrowThickness, IdentityPose, TransXPose, OM3DBaseX)
create_pose (0, ArrowLength, 0, 0, 0, 0, 'Rp+T', 'gba', 'point', TransYPose)
gen_arrow_object_model_3d (ArrowThickness, IdentityPose, TransYPose, OM3DBaseY)
create_pose (0, 0, ArrowLength, 0, 0, 0, 'Rp+T', 'gba', 'point', TransZPose)
gen_arrow_object_model_3d (ArrowThickness, IdentityPose, TransZPose, OM3DBaseZ)
OM3DBase := [OM3DBaseX,OM3DBaseY,OM3DBaseZ,OM3DBasePlate]
return ()

二、gen_arrow_object_model_3d 函数调用

这个函数绘制一个箭头,从ArrowStart点开始,到ArrowEnd点结束。

* 
* This procedure draws an arrow that starts at the point ArrowStart and ends at ArrowEnd.
* 
* Get parameters.
DirectionVector := ArrowEnd[0:2] - ArrowStart[0:2]
ArrowLength := sqrt(DirectionVector[0] * DirectionVector[0] + DirectionVector[1] * DirectionVector[1] + DirectionVector[2] * DirectionVector[2])
ConeRadius := 2.0 * ArrowThickness
ConeLength := min([2.0 * ConeRadius,ArrowLength * 0.9])
CylinderLength := ArrowLength - ConeLength
* 
* Create cone.
pi := rad(180)
X := 0
Y := 0
Z := CylinderLength + ConeLength
for Index := 0 to 2 * pi by 0.1X := [X,ConeRadius * cos(Index)]Y := [Y,ConeRadius * sin(Index)]Z := [Z,CylinderLength]
endfor
gen_object_model_3d_from_points (X, Y, Z, OM3DConeTmp)
convex_hull_object_model_3d (OM3DConeTmp, OM3DCone)
clear_object_model_3d (OM3DConeTmp)
* 
* Create cylinder.
X := []
Y := []
for Index := 0 to 2 * pi by 0.1X := [X,ArrowThickness * cos(Index)]Y := [Y,ArrowThickness * sin(Index)]
endfor
tuple_gen_const (|Y|, 0, ZZero)
tuple_gen_const (|Y|, CylinderLength, ZTop)
gen_object_model_3d_from_points ([X,X], [Y,Y], [ZZero,ZTop], OM3DCylinderTmp)
convex_hull_object_model_3d (OM3DCylinderTmp, OM3DCylinder)
clear_object_model_3d (OM3DCylinderTmp)
* 
* Union cone and cylinder Create arrow.
union_object_model_3d ([OM3DCone,OM3DCylinder], 'points_surface', OM3DArrowTmp)
clear_object_model_3d (OM3DCone)
clear_object_model_3d (OM3DCylinder)
Scale := CylinderLength / ArrowLength
OriginX := [0, 0, 0]
OriginY := [0, 0, 0]
OriginZ := [0,CylinderLength,ArrowLength]
TargetX := [ArrowStart[0],ArrowStart[0] + Scale * DirectionVector[0],ArrowEnd[0]]
TargetY := [ArrowStart[1],ArrowStart[1] + Scale * DirectionVector[1],ArrowEnd[1]]
TargetZ := [ArrowStart[2],ArrowStart[2] + Scale * DirectionVector[2],ArrowEnd[2]]
vector_to_hom_mat3d ('rigid', OriginX, OriginY, OriginZ, TargetX, TargetY, TargetZ, HomMat3D)
affine_trans_object_model_3d (OM3DArrowTmp, HomMat3D, OM3DArrow)
clear_object_model_3d (OM3DArrowTmp)
return ()

获取参数:
计算方向向量DirectionVector,这是ArrowEnd和ArrowStart的前两个坐标的差。
计算箭头的长度ArrowLength,这是方向向量的长度(即三维空间中的直线距离)。
计算锥体的半径ConeRadius,这是箭头粗细ArrowThickness的两倍。
计算锥体的长度ConeLength,这是箭头长度的90%和两倍锥体半径中的较小值。
计算圆柱体的长度CylinderLength,这是箭头总长度减去锥体长度。
创建锥体:
使用循环生成锥体底面的点,这些点位于一个圆上,圆的半径为ConeRadius。
使用这些点生成一个临时三维对象模型OM3DConeTmp。
使用convex_hull_object_model_3d函数从临时模型生成一个凸包模型OM3DCone,这是最终的锥体模型。
清除临时模型OM3DConeTmp。
创建圆柱体:
使用循环生成圆柱体侧面的点,这些点位于一个圆上,圆的半径为ArrowThickness。
生成两个常数值数组ZZero和ZTop,分别代表圆柱体的底部和顶部在Z轴上的位置。
使用这些点生成一个临时三维对象模型OM3DCylinderTmp。
使用convex_hull_object_model_3d函数从临时模型生成一个凸包模型OM3DCylinder,这是最终的圆柱体模型。
清除临时模型OM3DCylinderTmp。
合并锥体和圆柱体以创建箭头:
使用union_object_model_3d函数将锥体和圆柱体合并成一个临时模型OM3DArrowTmp。
清除原始的锥体和圆柱体模型OM3DCone和OM3DCylinder。
调整箭头的位置和方向:
计算缩放比例Scale,这是圆柱体长度与箭头总长度的比例。
计算原点和目标点的坐标,用于将箭头从原点(临时模型的位置)变换到实际的位置和方向。
使用vector_to_hom_mat3d函数计算一个从原点到目标点的刚体变换矩阵HomMat3D。
使用affine_trans_object_model_3d函数应用这个变换矩阵,将箭头从临时模型OM3DArrowTmp变换到最终的位置和方向,生成最终的箭头模型OM3DArrow。
清除临时模型OM3DArrowTmp。

http://www.shuangfujiaoyu.com/news/28408.html

相关文章:

  • 河南省建设教育培训中心网站网络营销相关工作岗位
  • 成都网站制作公司 dedecms竞价排名服务
  • 页面设计成上下两栏排名优化公司哪家靠谱
  • 网站操作日志关闭站长工具seo综合查询
  • 基于web技术的音乐网站开发哪些平台可以打小广告
  • 广州h5网站制作做公司网站的公司
  • 山西有哪些做网站的公司电商网页
  • 做市场调查的网站免费seo搜索
  • 用java做的游戏下载网站有哪些人民日报新闻
  • 电商网站上信息资源的特点包括百度竞价防软件点击软件
  • 织梦圈子如何调用网站默认模板做一个网站的步骤
  • 怎么做网站教程内蒙古seo
  • 叫别人做网站需要注意什么问题怎么提高百度搜索排名
  • cms傻瓜式建站系统seo搜索优化专员招聘
  • 隐藏网站源码网络舆情应急预案
  • 东莞网站建设功能微商怎样让客源主动加你
  • 网站怎么做seo_游戏如何在网上推广
  • 威海市建设局网站新媒体销售好做吗
  • 暂时关闭wordpress对网站提出的优化建议
  • 电子商务平台是什么seo关键词排名优化系统
  • 什么网站做淘宝素材比较好郑州厉害的seo顾问
  • 寮步网站建设价钱廊坊网站seo
  • 做网站建设推广好做吗十大网络营销成功案例
  • 如何让自己做的网站在google搜索引擎上搜到台州做优化
  • 做百度网站需不需要备案成人短期电脑培训班学费
  • python爬虫搜索seo怎么优化
  • 怎么给wordpress加背景图百度seo算法
  • 做tcf法语听力题的网站微信营销软件哪个好用
  • 甘肃省建设工程安全质量监督管理局网站滨州seo招聘
  • 新网网站内部优化网络营销成功案例3篇