PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > CreatePlaneSurface
CreatePlaneSurface

Description:

Creates a plane surface based on the rotation of the coordinate system.

Syntax:

"CreatePlaneSurface typeOfPlane"

where:

typeOfPlane is the type of plane to create. 0 = Best fit to all points, 1=XY, 2=YZ, 3=XY (matches eSurfacePlaneType enum) Returns "1" if successful or "0" if not. Fails if: - No project is loaded. - An invalid plane type is passed in - Surface creation failed (e.g. not enough points in project)

 

"CreatePointCloud name u v"

where:

name=the user name assigned to points that are to be used, can be as long as 512 chars and have spaces

optional:

u = max u spans

v = max v spans

Return:

"1" if successful or "0" if this command failed. 

Fails if:

- No project is loaded.

- An invalid plane type is passed in

- Surface creation failed (e.g. not enough points in project)

Example:

"CreatePlaneSurface 1”

return "1"