Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] squared_radius() error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] squared_radius() error


Chronological Thread 
  • From: Atul Thakur <>
  • To:
  • Subject: Re: [cgal-discuss] squared_radius() error
  • Date: Wed, 24 Feb 2010 09:55:11 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=imKWjoY0FghaYA9OCDuPGUngHyidJsatGbcprdouBe/u86O1hJTVYG33pvTFbk0gGg HtGVOmmiCIS+jjy3LSIhQo9HfBVonk1r3P8d5QQcsg3d6oQOUjucuOICLQmcbo6sDYBZ /CbZ1V+cey59W8KivJIqxxws5Q1S6UYClINxw=

radius=sqrt(CGAL::to_double(is->squared_radius()));
might help.

-Atul

On Wed, Feb 24, 2010 at 9:44 AM, Sebastien Loriot (GeometryFactory)
<>
wrote:
> mahdavi wrote:
>>
>> hi,all
>> I have a array of spheres ,and   follow error occured  in  an assignment .
>> error is
>> :://////////////////////////////////////////////////////////////////////
>> : error C2440: '=' : cannot convert from 'CGAL::Null_functor::result_type'
>> to 'double'
>>
>> ///////////////////////////////////////////////////////////////////////////.
>> my code is:
>> /////////////////////////////////// code:
>> std::vector<K::Sphere_3>::iterator is=points1.begin();
>> float   radius;
>> radius=sqrt(is->squared_radius());
>> //////////////////////////////////////////////////
>> whether someone could guidance  me ? Thank you.
>>
> Hello,
>
> I guess the underlying type of your kernel is not double.
> What is K?
>
> S.
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>



--
Atul Thakur
3rd Year PhD Student,
Department of Mechanical Engineering,
University of Maryland, College Park, 20742

Home Page: http://terpconnect.umd.edu/~athakur/index.htm
Lab. Page: http://www.aml.umd.edu/facstaff/students.html



Archive powered by MHonArc 2.6.16.

Top of Page