From 0c0c2ec2ecfd64b16ff6ca0e69142223615f0c36 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 28 Jan 2019 13:53:44 +0100 Subject: fix obj2ply, add may and xi --- megapixels/commands/misc/obj2ply.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'megapixels/commands/misc') diff --git a/megapixels/commands/misc/obj2ply.py b/megapixels/commands/misc/obj2ply.py index e3e18e54..8d0cec60 100644 --- a/megapixels/commands/misc/obj2ply.py +++ b/megapixels/commands/misc/obj2ply.py @@ -7,11 +7,11 @@ Convert an OBJ 3D model (with vertex color) to a PLY file, which can be read by import click @click.command() -@click.add_argument('--float_colors', action='store_true', help='pass if RGB colors are floats, not ints, in the obj') -@click.add_argument('--unwind', action='store_true', help='pass to reverse winding order on faces (if surface normals are upside down)') -@click.add_argument('--flip_y', action='store_true', help='flip Y axis') -@click.add_argument('-i', '--input_fn', required=True, help='input OBJ filename') -@click.add_argument('-o', '--output_fn', help='output PLY filename') +@click.option('-c', '--float_colors/--int_colors', 'float_colors', default=False, help='pass if RGB colors are floats, not ints, in the obj') +@click.option('-u', '--unwind/--wind', 'unwind', default=False, help='pass to reverse winding order on faces (if surface normals are upside down)') +@click.option('-y', '--flip_y/--no_flip_y', 'flip_y', default=False, help='flip Y axis') +@click.option('-i', '--input_fn', required=True, help='input OBJ filename') +@click.option('-o', '--output_fn', help='output PLY filename') @click.pass_context def cli(ctx, float_colors, unwind, flip_y, input_fn, output_fn): """ -- cgit v1.2.3-70-g09d2