Jump to content

[SOLVED] BoundSphere and dvec3


photo

Recommended Posts

Hi all,

I'm computing a bound sphere to enclose a set of points. I'm using double precision version and I found this error message:

BoundSphere::expand(): unknown type of argument (dvec3)

Why BoundSphere doesn't support double precision?

It's my fault? it's a bug? or is there another reason?

 

Thanks.

 

Link to comment

Hi Iván,

 

In case of double precision coordinates, the bounding sphere should be constructed by using the WorldBoundSphere class. It includes the same functions as the BoundSphere class, but its functions deal with the double precision coordinates.

 

Notice
To support both single and double precision builds, you can use the WorldBoundSphere class only. The engine will automatically substitute it with the BoundSphere if it is required.
 
 
 
Link to comment
×
×
  • Create New...