Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] What's the minimal requirement to use the Constructive Solid Geometry (CSG) module of CGAL?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] What's the minimal requirement to use the Constructive Solid Geometry (CSG) module of CGAL?


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] What's the minimal requirement to use the Constructive Solid Geometry (CSG) module of CGAL?
  • Date: Wed, 18 Jan 2012 11:55:11 +0100

CGAL cannot handle directly cylinders but only discrete polyhedral models.

See the documentation of Nef package for more details:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Nef_3/Chapter_main.html

Sebastien.

On 01/18/2012 10:41 AM, Zhanghong Tang wrote:
> Dear Dr. Loriot,
>
> Thank you very much for your kindly reply.
>
> My requirement is as follows:
> 1) read the geometries to do the operations;
> for example, two cylinders with both radius 1 and length 10, the center
> of top and bottom facet of two cylinders are:
> cylinder 1:
> top facet: (0,0,5)
> bottom facet: (0,0,-5)
> cylinder 2:
> top facet (5,0,0)
> bottom facet: (-5,0,0)
>
> 2) find the 3D Boolean operations of input objects and output the
> presentation by OFF file format.
> for example, find the unite of two crossed cylinders and output the
> presentation by OFF file format.
>
>
> How to implement this with mimimal code?
>
>
> Thanks,
> Zhanghong Tang
>
>
> P.S.:
> I notice that the mesher 'NetGen' takes the CSG format as its input
> file, however, it can't handle the simplest example (it works when the
> radius of two cylinders are not equal), I guess that the CGAL can handle
> it easily.
>
>
>
> > Date: Wed, 18 Jan 2012 08:25:30 +0100
> > From:
>
> > To:
>
> > Subject: Re: [cgal-discuss] What's the minimal requirement to use the
> Constructive Solid Geometry (CSG) module of CGAL?
> >
> > Zhanghong Tang wrote:
> > > Dear all,
> > >
> > > I would like use the CSG module of CGAL, what's the minimal
> requirement
> > > to use this module? I want to build it to a blockbox with CSG module
> > > data input and another format data output (for example, piecewise
> linear
> > > complex format, Geomview's polyhedral file format (OFF)), which files
> > > should I select to compile and is there any interface to use this
> module?
> > >
> > > Thanks,
> > > Zhanghong Tang
> > >
> > Your question is not clear to me. Could you explain what you are looking
> > for exactly?
> &g t;
> > For 3D Boolean operations, you need to use Nef_3:
> >
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Nef_3/Chapter_main.html
> > For simple polyhedron manipulation, you can use Polyhedron_3:
> >
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron/Chapter_main.html
> >
> > Sebastien.
> >
> > --
> > You are currently subscribed to cgal-discuss.
> > To unsubscribe or access the archives, go to
> > https://lists-sop.inria.fr/wws/info/cgal-discuss
> >




Archive powered by MHonArc 2.6.16.

Top of Page