CreatePointCloudModel

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#

 

ITerrainPointCloudModel80 CreatePointCloudModel(

       string        ModelFileName,

       IPosition80 Position,

       string        GroupID = "",

       string        Description = "")

 

C++

 

HRESULT CreatePointCloudModel(  

        BSTR  ModelFileName,

        IPosition80 *      Position,

        BSTR  GroupID,

        BSTR  Description,

        ITerrainPointCloudModel80 **    pITerrainPointCloudModel80) 

 

Parameters

ModelFileName

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

Position

An IPosition80 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 IProjectTree80.CreateGroup.

·          Find the group, if you know the name, using IProjectTree80.FindItem.

·          Traverse the Tree using IProjectTree80 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

pITerrainPointCloudModel80

An ITerrainPointCloudModel80, representing the newly created point cloud model.

Exceptions

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