mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0028789: Visualization, TKV3d - extend API for accessing and assigning BVH builders
Several methods in Selection classes have been moved to header files for better inlining. BVH_Constants - added new enumeration defining common constant values used with BVH trees. BVH - replaced NCollection_Handle with Standard_Transient handle in classes BVH_Properties, BVH_Builder, BVH_Tree, BVH_Object. Defined global BVH-builders instead of allocating a new one for each object set. SelectMgr_ViewerSelector - added new method ::SetEntitySetBuilder() defining default BVH Tree builder for SelectMgr_SensitiveEntitySet. Added new method SelectMgr_SensitiveEntitySet::SetBuilder() for overriding default BVH tree builder.
This commit is contained in:
@@ -814,9 +814,9 @@ protected: //! @name methods related to ray-tracing
|
||||
const Handle(OpenGl_Context)& theGlContext);
|
||||
|
||||
//! Adds OpenGL primitive array to ray-traced scene geometry.
|
||||
OpenGl_TriangleSet* addRaytracePrimitiveArray (const OpenGl_PrimitiveArray* theArray,
|
||||
const Standard_Integer theMatID,
|
||||
const OpenGl_Mat4* theTrans);
|
||||
Handle(OpenGl_TriangleSet) addRaytracePrimitiveArray (const OpenGl_PrimitiveArray* theArray,
|
||||
const Standard_Integer theMatID,
|
||||
const OpenGl_Mat4* theTrans);
|
||||
|
||||
//! Adds vertex indices from OpenGL primitive array to ray-traced scene geometry.
|
||||
Standard_Boolean addRaytraceVertexIndices (OpenGl_TriangleSet& theSet,
|
||||
@@ -961,6 +961,9 @@ protected: //! @name fields related to ray-tracing
|
||||
//! 3D scene geometry data for ray-tracing.
|
||||
OpenGl_RaytraceGeometry myRaytraceGeometry;
|
||||
|
||||
//! Builder for triangle set.
|
||||
opencascade::handle<BVH_Builder<Standard_ShortReal, 3> > myRaytraceBVHBuilder;
|
||||
|
||||
//! Compile-time ray-tracing parameters.
|
||||
RaytracingParams myRaytraceParameters;
|
||||
|
||||
|
Reference in New Issue
Block a user