CreatePointCloudModel

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#

 

ITerrainPointCloudModel61 CreatePointCloudModel(

       string    ModelFileName,

       IPosition61   Position,

       int       GroupID = 0,

       string    Description = "")

 

C++

 

HRESULT CreatePointCloudModel(           

        BSTR                              ModelFileName,

        IPosition61                    Position,

        LONG_PTR                          GroupID,

        BSTR                              Description,

        ITerrainPointCloudModel61 **      pITerrainPointCloudModel61) 

 

Parameters

ModelFileName

A full path name or a URL to the point cloud model to import to the terrain.

Position

An IPosition61 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 zero, the object is created under the root. You can obtain the GroupID by one of the following methods:

§  Create the group using IProjectTree61.CreateGroup.

§  Find the group, if you know the name, using IProjectTree61.FindItem.

§  Traverse the Tree using IProjectTree61 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

pITerrainPointCloudModel61

An ITerrainPointCloudModel61, representing the newly created point cloud model.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.