Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Cutting a polyhedron with a plane?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Cutting a polyhedron with a plane?


Chronological Thread 
  • From: loadcom <>
  • To:
  • Subject: [cgal-discuss] Cutting a polyhedron with a plane?
  • Date: Sat, 29 Dec 2007 23:27:21 +0800

I have looked up the CGAL manual, but I got no direct answer.

I guess it's created as the intermediate result of the AND operation of
2 existing nef-polyhedra. e.g:

Nef_polyhedron N0;
// ...
Nef_polyhedron N1(Plane_3( 1, 0, 0,-1),Nef_polyhedron::EXCLUDED);
N0 -= N1; // during this op, the cutting polygon should be already created

But how can I get this result?

Or, as an coarse implementation, as far as efficiency is concerned, I may
get the result I needed, in another form, using:

Nef_polyhedron N2(Plane_3( 1, 0, 0,-1),Nef_polyhedron::INCLUDED);
N0 -= !N2;

N0 will be the resulting slice of cutting Plane_3( 1, 0, 0,-1) with N0,
but, still, how can I get the polygon from the Nef_polyhedron data structure?

Any help or hints will be appreciated.

Max

 


Re:[cgal-discuss] How to get resulting polygen of cutting a polyhedron with a plane?

Hello,

I have a maybe simple question:

How to get resulting polygen of cutting a polyhedron with a plane?

Many thanks.

Max



-------------------------------------------------------------------
金山毒霸2008,新品上市!37天免费!( http://d1.sina.com.cn/sina/limeng3/mail_zhuiyu/2007/mail_zhuiyu_20071212g.html )

===================================================================
注册新浪2G免费邮箱(http://mail.sina.com.cn/


Archive powered by MHonArc 2.6.16.

Top of Page