Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Intersections of Triangle_3
- Date: Wed, 12 Feb 2014 16:10:51 +0100
- Organization: GeometryFactory
On 02/12/2014 03:34 PM, Roger Mason wrote:
Hello Sebastian,Yes but I still don't understand the problem.
Is this better?
Could you post a minimal example that we can compile that shows the pb?
Thanks,
Sebastien.
template <class R>
void foo( Triangle_3<R>& a, Triangle_3<R>& b) {
std::cout << "The objects are: " << a << " and " << b << std::endl;
CGAL::cpp11::result_of<K::Intersect_3(Triangle_3<R>,
Triangle_3<R>)>::type
result = intersection(a, b);
}i
Called like this:
int main() {
....
// Now find the Triangle_3:Triangle_3 intersections.
// Example
Point_3 p = Point_3(0.3,0.4,0.5);
Point_3 q = Point_3(0.4,0.5,0.6);
Point_3 r = Point_3(0.5,0.6,0.7);
Triangle_3 t = Triangle_3(p,q,r);
Point_3 pp = Point_3(0.3,0.4,0.5);
Point_3 qq = Point_3(0.4,0.5,0.6);
Point_3 rr = Point_3(0.5,0.6,0.7);
Triangle_3 tt = Triangle_3(pp,qq,rr);
foo(t,tt);
The error:
error: ‘Triangle_3 {aka CGAL::Triangle_3<CGAL::Cartesian<double> >}’ is
not a template
void foo( Triangle_3<R>& a, Triangle_3<R>& b) {
Thanks,
Roger
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Intersections-of-Triangle-3-tp4658788p4658814.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Intersections of Triangle_3, Roger Mason, 02/08/2014
- Re: [cgal-discuss] Intersections of Triangle_3, Sebastien Loriot (GeometryFactory), 02/11/2014
- Re: [cgal-discuss] Intersections of Triangle_3, Roger Mason, 02/12/2014
- Re: [cgal-discuss] Intersections of Triangle_3, Sebastien Loriot (GeometryFactory), 02/12/2014
- Re: [cgal-discuss] Intersections of Triangle_3, Roger Mason, 02/12/2014
- Re: [cgal-discuss] Intersections of Triangle_3, Sebastien Loriot (GeometryFactory), 02/11/2014
Archive powered by MHonArc 2.6.18.