From Domenico Mangieri:
"I've added a Plane constructor which accepts a normal and a point. I also removed calculateUpperLowerBBCorners() from the Plane(const Vec3& v1, const Vec3& v2, const Vec3& v3) since the constructor is using the function set(const Vec3& v1, const Vec3& v2, const Vec3& v3) which already computes the upper and lower bounding box."
This commit is contained in:
parent
c0d6126313
commit
b50ac89b9d
@ -36,7 +36,8 @@ class OSG_EXPORT Plane
|
|||||||
inline Plane(float a,float b,float c,float d):_fv(a,b,c,d) { calculateUpperLowerBBCorners(); }
|
inline Plane(float a,float b,float c,float d):_fv(a,b,c,d) { calculateUpperLowerBBCorners(); }
|
||||||
inline Plane(const Vec4& vec):_fv(vec) { calculateUpperLowerBBCorners(); }
|
inline Plane(const Vec4& vec):_fv(vec) { calculateUpperLowerBBCorners(); }
|
||||||
inline Plane(const Vec3& norm,float d):_fv(norm[0],norm[1],norm[2],d) { calculateUpperLowerBBCorners(); }
|
inline Plane(const Vec3& norm,float d):_fv(norm[0],norm[1],norm[2],d) { calculateUpperLowerBBCorners(); }
|
||||||
inline Plane(const Vec3& v1, const Vec3& v2, const Vec3& v3) { set(v1,v2,v3); calculateUpperLowerBBCorners(); }
|
inline Plane(const Vec3& v1, const Vec3& v2, const Vec3& v3) { set(v1,v2,v3); }
|
||||||
|
inline Plane(const Vec3& norm, const Vec3& point) { set(norm,point); }
|
||||||
|
|
||||||
inline Plane& operator = (const Plane& pl)
|
inline Plane& operator = (const Plane& pl)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user