API Reference > Functions > oddbCreatePointCloudEntity Function
oddbCreatePointCloudEntity Function
Syntax
C++
DBPOINTCLOUDOBJ_EXPORT OdResult oddbCreatePointCloudEntity(OdDbBlockTableRecord* pBlockToAdd, OdDbPointCloudPtr& newPointCloud, const OdString& indexFile, const OdString& sourceFile, const OdGePoint3d& location = OdGePoint3d::kOrigin, double scale = 1.0, double rotation = 0.0, const OdGeVector3d& vAxis = OdGeVector3d::kZAxis);

DbPointCloud.h

Parameters 
Description 
OdDbBlockTableRecord* pBlockToAdd 
[in] Pointer to the block table record to add the point cloud entity to.  
OdDbPointCloudPtr& newPointCloud 
[out] Recieves a pointer to the created point cloud entity.  
const OdString& indexFile 
[in] Index file path.  
const OdString& sourceFile 
[in] Source file path.  
const OdGePoint3d& location = OdGePoint3d::kOrigin 
[in] Location of the entity.  
double scale = 1.0 
[in] Scale factor.  
double rotation = 0.0 
[in] Rotation angle.  
const OdGeVector3d& vAxis = OdGeVector3d::kZAxis 
[in] Rotation axis. 

Returns eOk.

This method performs the whole point cloud entity creation routine: creates the OdDbPointCloud entity, appends it to the database, applies specified attributes, creates the OdDbPointCloudDef object (if needed), restores or creates new links to the OdDbPointCloudDef object, adds reactors. 

 

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