Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 687 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 687 Bytes

ply2ppm

This is a simple command-line program that converts an ASCII PLY file to a grayscale PPM image. Faces are colored based on their index in the PLY file. By default, the program outputs a 256x256 PPM image with a fixed camera orientation, but the size of the PPM image and camera orientation can be modified using command-line arguments.

Usage

ply2ppm <src> [columns] [rows] [x_deg] [y_deg] [z_deg]

  • src specifies the path to the input PLY file and is a required arguments.
  • columns and rows specify the size of the PPM image in pixels.
  • x_deg, y_deg, and z_deg specify the camera's rotation about the X-axis, Y-axis, and Z-axis, respectively, in degrees.