|
||||
File indexing completed on 2025-01-18 10:03:19
0001 // Created on: 2013-12-20 0002 // Created by: Denis BOGOLEPOV 0003 // Copyright (c) 2013-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef BVH_SpatialMedianBuilder_HeaderFile 0017 #define BVH_SpatialMedianBuilder_HeaderFile 0018 0019 #include <BVH_BinnedBuilder.hxx> 0020 #include <BVH_Box.hxx> 0021 0022 //! Performs building of BVH tree using spatial median split algorithm. 0023 template<class T, int N> 0024 class BVH_SpatialMedianBuilder : public BVH_BinnedBuilder<T, N, 2> 0025 { 0026 public: 0027 0028 //! Creates spatial median split builder. 0029 BVH_SpatialMedianBuilder (const Standard_Integer theLeafNodeSize = BVH_Constants_LeafNodeSizeDefault, 0030 const Standard_Integer theMaxTreeDepth = BVH_Constants_MaxTreeDepth, 0031 const Standard_Boolean theToUseMainAxis = Standard_False) 0032 : BVH_BinnedBuilder<T, N, 2> (theLeafNodeSize, 0033 theMaxTreeDepth, 0034 theToUseMainAxis) {} 0035 0036 //! Releases resources of spatial median split builder. 0037 virtual ~BVH_SpatialMedianBuilder() {} 0038 0039 }; 0040 0041 #endif // _BVH_SpatialMedianBuilder_Header
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |