Home > Working with SGWorld > Creator (ICreator6) > CreatePointCloudModel

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#

 

ITerrainPointCloudModel6 CreatePointCloudModel(

      string   ModelFileName,

      IPosition6 Position,

      int      GroupID = 0,

      string   Description = "")

 

C++

 

HRESULT CreatePointCloudModel(      

       BSTR                          ModelFileName,

       IPosition6 *                  Position,

       LONG_PTR                      GroupID,

       BSTR                          Description,

       ITerrainPointCloudModel6 **   pITerrainPointCloudModel6) 

 

Parameters

ModelFileName

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

Position

An IPosition6 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 IProjectTree6.CreateGroup.

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

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

pITerrainPointCloudModel6

An ITerrainPointCloudModel6, representing the newly created point cloud model.

Exceptions

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