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

百度上怎么做网站太原搜索引擎优化招聘信息

百度上怎么做网站,太原搜索引擎优化招聘信息,做动漫主题的网站,网站的首页怎么做的3.Arrangement查询 Arrangement里面最重要的查询操作是point-location,给定一个点,查找到包含这个点的Arrangement。通常情况下,point-location查询得到的结果是Arrangement的一个face,退化情况下会是一个edge,查一个…
3.Arrangement查询

Arrangement里面最重要的查询操作是point-location,给定一个点,查找到包含这个点的Arrangement。通常情况下,point-location查询得到的结果是Arrangement的一个face,退化情况下会是一个edge,查一个重合的点。

3.1 point-Location查询
3.3 垂直射线扫描

另一个经常用到Arrangement的查找,是垂直射线扫描查找:给定一个查找点,哪些Arrangement单元会跟从这个点发射的垂直射线相交?一般情况下,可能这个射线交到一边edge,也有可能交到一个vertex,或者这个Arrangement单元不跟这个射线相交。

在前面章节讲到的point-location类,也是一个ArrangementVerticalRayShoot_2概念(concept)的一个model,所以他们全都有成员方法ray_shoot_up(q)和 ray_shoot_down(q),这其中的Q是一个用来查询的point。

在头文件point_location_utils.h中有下面的辅助方法:

template <typename VerticalRayShooting>
void shoot_vertical_ray(const RayShoot& vrs,const typenameVerticalRayShooting::Arrangement_2::Point_2& q)
{typedef VerticalRayShooting                           Vertical_ray_shooting;// Perform the point-location query.typename Vertical_ray_shooting::result_type obj = vrs.ray_shoot_up(q);// Print the result.typedef typename Vertical_ray_shooting::Arrangement_2 Arrangement_2;typedef typename Arrangement_2::Vertex_const_handle   Vertex_const_handle;typedef typename Arrangement_2::Halfedge_const_handle Halfedge_const_handle;typedef typename Arrangement_2::Face_const_handle     Face_const_handle;const Vertex_const_handle* v;const Halfedge_const_handle* e;const Face_const_handle* f;std::cout << "Shooting up from (" << q << ") : ";if (v = boost::get<Vertex_const_handle>(&obj))         // we hit a vertexstd::cout << "hit " << (((*v)->is_isolated()) ? "an isolated" : "a")<< " vertex: " << (*v)->point() << std::endl;else if (e = boost::get<Halfedge_const_handle>(&obj))  // we hit an edgestd::cout << "hit an edge: " << (*e)->curve() << std::endl;else if (f = boost::get<Face_const_handle>(&obj)) {    // we hit nothingCGAL_assertion((*f)->is_unbounded());std::cout << "hit nothing.\n";}else CGAL_error();
}

下面的程序段,使用了上面的函数模式,在一个Arrangement上执行垂直射线扫描查询:

// Answering vertical ray-shooting queries.
#include <CGAL/basic.h>
#include <CGAL/Arr_walk_along_line_point_location.h>
#include <CGAL/Arr_trapezoid_ric_point_location.h>
#include "arr_inexact_construction_segments.h"
#include "point_location_utils.h"
typedef CGAL::Arr_walk_along_line_point_location<Arrangement> Walk_pl;
typedef CGAL::Arr_trapezoid_ric_point_location<Arrangement>   Trap_pl;
int main() {// Construct the arrangement.Arrangement arr;construct_segments_arr(arr);// Perform some vertical ray-shooting queries using the walk strategy.Walk_pl walk_pl(arr);shoot_vertical_ray(walk_pl, Point(1, 4));shoot_vertical_ray(walk_pl, Point(4, 3));shoot_vertical_ray(walk_pl, Point(6, 3));// Attach the trapezoid-RIC object to the arrangement and perform queries.Trap_pl trap_pl(arr);shoot_vertical_ray(trap_pl, Point(3, 2));shoot_vertical_ray(trap_pl, Point(5, 2));shoot_vertical_ray(trap_pl, Point(1, 0));return 0;
}

http://www.mnyf.cn/news/48004.html

相关文章:

  • wordpress 做手机站友情链接
  • 日照市做网站广州市口碑seo推广
  • 自己制作网站的方法湖南网站建站系统哪家好
  • 宜昌网站建设0717web抖音seo优化系统招商
  • 爱站工具有加超人下拉系统石家庄网站建设方案推广
  • 微信小程序做网站域名查询入口
  • 页面设计排版网站微信朋友圈营销文案
  • 国家企业信息管理系统新手seo要学多久
  • b站 网站建设上海企业网站推广
  • 做公司展示网站站内推广方式有哪些
  • 怎么做游戏测评视频网站关键词优化公司费用多少
  • 电商网站里的水果图片怎么做的seo技术快速网站排名
  • 网站建设空间一般多大知名网络营销推广
  • 河北住房与城乡建设部网站企业网站注册域名的步骤
  • 实搜石家庄网站建设小程序推广网站多少钱
  • 上海网站建设-网建知识html网页制作代码大全
  • 做音乐头像网站什么是百度搜索推广
  • 移动应用网站开发宁波seo自然优化技术
  • 网站首页的名字通常是网络软文是什么意思
  • 拍宣传片找什么公司宁波品牌网站推广优化
  • wordpress 网站静态百度一下 你就知道首页官网
  • 网站建设90g 吾爱破解抖音seo系统
  • 头像制作网站大连网络营销seo
  • 营销型网站制作步骤五个seo软件哪个好
  • 广东省建设工程网站北大青鸟职业技术学院简介
  • 网络培训的网站建设怎么去推广自己的公司
  • wordpress关闭百度seo网站
  • 电子政务建设与政府网站建设南阳本地网络推广优化公司
  • 3d动画制作软件免费网站seo主要是做什么的
  • 遵义企业做网站滕州网站建设优化