Subject: CGAL users discussion list
List archive
- From: srbehera <>
- To:
- Subject: [cgal-discuss] Viewing 3D Plane in Geomview
- Date: Thu, 26 Aug 2010 09:15:12 -0700 (PDT)
Hi
I am new to CGAL and just wrote a program to draw and view a plane in 3D.
But when I compile the program I am getting the following error
/home/cpp/test.cpp:22: error: no match for ‘operator<<’ in ‘geomview << s1’
my simple pgm is the following
#include <CGAL/Exact_spherical_kernel_3.h>
#include <CGAL/Random.h>
#include <CGAL/Point_3.h>
#include <CGAL/IO/Geomview_stream.h>
typedef CGAL::Exact_spherical_kernel_3 Spherical_k;
typedef CGAL::Point_3<Spherical_k> Point_3;
typedef CGAL::Sphere_3<Spherical_k> Sphere_3;
typedef CGAL::Plane_3<Spherical_k> Plane_3;
int main() {
Point_3 p1(36,10,45);
Point_3 p2(10,20,45);
Point_3 p3(80,70,45);
//Sphere_3 s4 = Sphere_3(p1, 20);
Plane_3 s1 = Plane_3(p1,p2,p3);
CGAL::Geomview_stream geomview;
geomview << CGAL::RED;
geomview << s1;
std::cin.get();
return 0;
}
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Viewing-3D-Plane-in-Geomview-tp2339988p2339988.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Viewing 3D Plane in Geomview, srbehera, 08/26/2010
- [cgal-discuss] Re: Viewing 3D Plane in Geomview, srbehera, 08/26/2010
- Re: [cgal-discuss] Re: Viewing 3D Plane in Geomview, Olivier Devillers, 08/27/2010
- [cgal-discuss] Re: Viewing 3D Plane in Geomview, srbehera, 08/26/2010
Archive powered by MHonArc 2.6.16.