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

Description:

Return the 2D position of a 3D point on a photo.

Syntax:

"ProjectPoint PhotoID X Y Z"

where:

"PhotoID " is the id of the photo for the projection, x is the X coordinate, y is the Y coordinate and z is the Z coordinate of the 3D point (coordinates in project units).

Return:

"1 X Y" if  successful or "0" if not

where:

X nd Y represent the 2D photo coordinates (upper left is 0,0).

Failure returns

- no project is open

- invalid Photo ID

- photo not oriented

- point doesn’t project onto the image

Example:

"ProjectPoint 1 10.5 20.8 -1.89"

return "1 10.7 30.6"