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# |
|
ITerrainPointCloudModel66 CreatePointCloudModel( string ModelFileName, IPosition66 Position, [string GroupID = ""], [string Description = ""]) |
C++ |
|
HRESULT CreatePointCloudModel( BSTR ModelFileName, IPosition66 * Position, BSTR GroupID, BSTR Description, ITerrainPointCloudModel66 ** pITerrainPointCloudModel66) |
Parameters
ModelFileName
A full path name or a URL to the point cloud model to import to the terrain.
Position
An IPosition66 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 IProjectTree66.CreateGroup.
· Find the group, if you know the name, using IProjectTree66.FindItem.
· Traverse the Tree using IProjectTree66 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
pITerrainPointCloudModel66
An ITerrainPointCloudModel66, representing the newly created point cloud model.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.