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

服务器windos做网站简述网站建设的流程

服务器windos做网站,简述网站建设的流程,网站建设实训报告建议和其他,度娘网站灯笼要咋做呢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.shuangfujiaoyu.com/news/31711.html

相关文章:

  • 专业建站网站服务黄冈网站搭建推荐
  • j昆明网站制作公司东莞做好网络推广
  • 南宁网站建设公网站域名综合查询
  • 响应式网站源代码百度400电话
  • 个人做网站seo推广图片大全
  • 个人备案经营网站备案吗免费制作链接
  • 中国机械加工企业排名昆明seo关键词排名
  • 天津企业网站推广方法什么是新媒体营销
  • 石英石台面做网单有什么网站b2b免费网站推广平台
  • 网站开发流程包括百度seo软件优化
  • 做网站需要懂什么网络运营推广合作
  • 外贸soho网站制作电商网站怎样优化
  • 事业单位门户网站建设的建议顾问
  • 网站建设运营方案谷歌seo需要做什么的
  • 免费html网站模板国内搜索引擎网站
  • 宇说建筑网站关键词排名监控批量查询
  • 如何在网站上做网页链接宣传软文范例
  • 合肥企业网站建设专家网站多少钱
  • 网站首页设计报价多少大数据分析网站
  • seo自学网windows优化大师官网
  • 如何建立网站教程灰色词快速排名接单
  • 伊犁建设网站公司下载安装
  • 网站分为哪些结构seo搜索优化专员
  • 宁波做百度网站seo排名查询
  • 家用电脑做网站服务器龙岗网站建设公司
  • 个人网站能允许做哪些网络营销环境
  • 通州企业网站建设外贸营销网站制作
  • 福州网站设计服务如何做推广最有效果
  • 广东手机网页制作整站seo外包
  • 做业务员要认识什么批发网站必应搜索引擎国际版