Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] generating random cutting planes for a mesh

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] generating random cutting planes for a mesh


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] generating random cutting planes for a mesh
  • Date: Thu, 10 Dec 2015 09:46:51 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:J0RGxhx1YTP88f/XCy+O+j09IxM/srCxBDY+r6Qd0ewQIJqq85mqBkHD//Il1AaPBtWFrasawLOP4ujJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6MyZ3pnLnrqtX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVWqrze+E0TKdTES89G2Ez/szi8xfZHiWV4X5JGF4bmBNTHwnI6lneWY3wtTey9sVw3yyXIdfnY7k/RTO4/uYhAEvzjCAdNjkltmTTosN1haNf5hmmokoskMbvfIiJOa8mLevmdtQASD8ZUw==
  • Organization: GeometryFactory

What I would do is
1- randomly sampling the bbox
2- use Side_of_triangle_mesh [1] to keep only those inside the mesh
3- randomly pick one of the points kept
4- randomly choose a normal vector


Sebastien.

[1] http://doc.cgal.org/4.7/Polygon_mesh_processing/classCGAL_1_1Side__of__triangle__mesh.html

On 12/10/2015 09:19 AM, vimarsh wrote:
Or would it be more advisable to try to generate 3 random points inside the
bounding box and create planes through them? (i have a mesh that i want to
slice inside the bounding box, so after generating planes, i will be
checking for "good" cutting planes, i.e., planes that intersect at least a
threshold amount of area of the object/mesh)
Thanks agin.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/generating-random-cutting-planes-for-a-mesh-tp4661460p4661461.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page