【问题标题】:Intersection of CGAL::Iso_rectangle_2 and CGAL::Ray_2CGAL::Iso_rectangle_2 和 CGAL::Ray_2 的交集
【发布时间】:2012-03-01 15:51:40
【问题描述】:

CGAL 中有一个函数Object intersection(Type1<Kernel> obj1, Type2<Kernel> obj2),它将返回一个对象,表示两个不同可能类型的给定对象的交集。它是saidCGAL::Iso_rectangle_2(边平行于 x 和 y 轴的矩形)和CGAL::Ray_2(从给定点射出的定向光线)的交点是CGAL::Point_2CGAL::Segment_2(只是点或线段) )。

那么当光线在两点与矩形相交时呢?在手册中看不到任何关于它的内容。

【问题讨论】:

  • 光线如何与矩形相交于两点?

标签: computational-geometry intersection cgal


【解决方案1】:

由 Sebastien Loriot 在 cgal-discuss 邮件列表中回答:

iso_rectangle 被认为是满的,所以你所说的 两点案例是第一段。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-10
    • 2014-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多