Subject: CGAL users discussion list
List archive
- From: sgdimitris <>
- To:
- Subject: [cgal-discuss] Create a plane and test if a point is on that plane
- Date: Sat, 26 May 2012 09:55:59 -0700 (PDT)
Hello to all users,
I create a plane from 3 Point_3 points, and after I test if the points
belong to that plane and I received negative answer. How can this be
possible?
for example, in the following I receive "No"
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedron_3<K>
Polyhedron_3;
typedef K::Point_3
Point_3;
void my_function(void)
{
Polyhedron_3::Plane_3 tmpPlane;
Point_3 point_1, point_2, point_3;
.
.
.
// I give values to points
.
.
.
tmpPlane = Polyhedron_3::Plane_3(point_1, point_2, point_3 );
if( tmpPlane.oriented_side(point_1) ==
CGAL::Oriented_side::ON_ORIENTED_BOUNDARY )
printf("Ok";
else
printf("No");
}
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Create-a-plane-and-test-if-a-point-is-on-that-plane-tp4655074.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Create a plane and test if a point is on that plane, sgdimitris, 05/26/2012
- Re: [cgal-discuss] Create a plane and test if a point is on that plane, Daniel Duque, 05/26/2012
Archive powered by MHonArc 2.6.16.