1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0025414: Visualization - Optimize ray-tracing performance

This patch increases ray-tracing performance up to 12% in regular mode, and up to 36% in FSAA mode.
This commit is contained in:
dbp
2014-10-23 18:18:24 +04:00
committed by bugmaster
parent 67e36f0c7a
commit 50d0e1cefd
5 changed files with 64 additions and 30 deletions

View File

@@ -141,7 +141,7 @@ public:
//! Creates new OpenGL element triangulation.
OpenGl_TriangleSet (const Standard_Size theArrayID)
: BVH_Triangulation<Standard_ShortReal, 3> (),
: BVH_Triangulation<Standard_ShortReal, 3>(),
myArrayID (theArrayID)
{
//
@@ -185,6 +185,9 @@ public:
//! Returns AABB of primitive set.
BVH_BoxNt Box() const;
//! Returns centroid position along the given axis.
Standard_ShortReal Center (const Standard_Integer theIndex, const Standard_Integer theAxis) const;
public:
BVH_Array3f Normals; //!< Array of vertex normals.
@@ -193,7 +196,7 @@ public:
private:
Standard_Size myArrayID; //!< Id of associated primitive array.
Standard_Size myArrayID; //!< ID of associated primitive array.
};