The CreatePointCloudModel method imports a Point Cloud object from a file and places it in the 3D Window. These models are created from a list of points in a 3D area that are collected by various 3D scanners. Currently, TerraExplorer supports Skyline’s proprietary Point Cloud files (CPT).
JavaScript |
|
CreatePointCloudModel( ModelFileName, Position, GroupID, Description ) |
C# |
|
ITerrainPointCloudModel65 CreatePointCloudModel( string ModelFileName, IPosition65 Position, [string GroupID = ""], [string Description = ""]) |
C++ |
|
HRESULT CreatePointCloudModel( BSTR ModelFileName, IPosition65 * Position, BSTR GroupID, BSTR Description, ITerrainPointCloudModel65 ** pITerrainPointCloudModel65) |
Parameters
ModelFileName
A full path name or a URL to the point cloud model to import to the terrain.
Position
An IPosition65 representing the position and orientation of the model on the terrain.
GroupID
The Project Tree group in which the point cloud model is created. If it is set to an empty string, the object is created under the root. You can obtain the GroupID by one of the following methods:
· Create the group using IProjectTree65.CreateGroup.
· Find the group, if you know the name, using IProjectTree65.FindItem.
· Traverse the Tree using IProjectTree65 methods such as GetNextItem, until you come to the desired GroupID.
Description
The name of the point cloud model as it appears in the Project Tree. If an empty string is passed into this parameter, TerraExplorer assigns it a unique name.
Return Value
pITerrainPointCloudModel65
An ITerrainPointCloudModel65, representing the newly created point cloud model.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.