API Reference > OdSi Classes > OdSiSpatialIndex Class > OdSiSpatialIndex Methods > OdSiSpatialIndex::createObject Method
OdSiSpatialIndex::createObject Method
Syntax
C++
static OdSiSpatialIndexPtr createObject(OdUInt32 flags, unsigned int initialNumEntity, unsigned int maxDepth = 30, unsigned int maxCount = 20, double eps = 1e-10);
Parameters 
Description 
OdUInt32 flags 
[in] Specifies set of flags for Spatial Index creation.  
unsigned int maxDepth = 30 
[in] Maximum depth of the Spatial Index.  
unsigned int maxCount = 20 
[in] Maximum number of nodes in the SpatialIndex.  
double eps = 1e-10 
[in] Relative tolerance (equalVector). 

Returns a SmartPointer to the new SpatialIndex object.

Creates a SpatialIndex object with the specified parameters.

maxDepth specifies the maximum number of times the tree-structured SpatialIndex can branch.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.