robust algorithm for DragPlanes selection (Patch, Doom3Light)

This commit is contained in:
Garux
2018-03-28 14:38:32 +03:00
parent 73605bf94b
commit 75852ff0a1
3 changed files with 116 additions and 140 deletions

View File

@@ -227,8 +227,8 @@ class SelectionTest
public:
virtual void BeginMesh( const Matrix4& localToWorld, bool twoSided = false ) = 0;
virtual const VolumeTest& getVolume() const = 0;
virtual const Vector3& getNear() const = 0;
virtual const Vector3& getFar() const = 0;
//virtual const Vector3& getNear() const = 0;
//virtual const Vector3& getFar() const = 0;
virtual const Matrix4& getScreen2world() const = 0;
virtual void TestPoint( const Vector3& point, SelectionIntersection& best ) = 0;
virtual void TestPolygon( const VertexPointer& vertices, std::size_t count, SelectionIntersection& best, const DoubleVector3 planepoints[3] ) = 0;