Warning:
Unable to load the following plugins:

	libio_e57.so: libio_e57.so does not seem to be a Qt Plugin.

Cannot load library /root/miniconda3/lib/python3.9/site-packages/pymeshlab/lib/plugins/libio_e57.so: (/usr/lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0)

#compdef ns-export

# AUTOMATICALLY GENERATED by `shtab`


_shtab_tyro_ns_export_commands() {
  local _commands=(
    "cameras:Export camera poses to a .json file."
    "gaussian-splat:Export 3D Gaussian Splatting model to a .ply"
    "marching-cubes:Export a mesh using marching cubes."
    "pointcloud:Export NeRF as a point cloud."
    "poisson:Export a mesh using poisson surface reconstruction."
    "tsdf:Export a mesh using TSDF processing."
  )
  _describe 'ns-export commands' _commands
}

_shtab_tyro_ns_export_options=(
  {-h,--help}"[show this help message and exit]:help:"
)

_shtab_tyro_ns_export_cameras_options=(
  {-h,--help}"[show this help message and exit]:help:"
  "--load-config[Path to the config YAML file. (required)]:load-config:_files"
  "--output-dir[Path to the output directory. (required)]:output-dir:_files -/"
)

_shtab_tyro_ns_export_gaussian_splat_options=(
  {-h,--help}"[show this help message and exit]:help:"
  "--load-config[Path to the config YAML file. (required)]:load-config:_files"
  "--output-dir[Path to the output directory. (required)]:output-dir:_files -/"
  "--output-filename[Name of the output file. (default\: splat.ply)]:output-filename:_files"
  "--obb-center[Center of the oriented bounding box. (default\: None)]:obb-center:"
  "--obb-rotation[Rotation of the oriented bounding box. Expressed as RPY Euler angles in radians (default\: None)]:obb-rotation:"
  "--obb-scale[Scale of the oriented bounding box along each axis. (default\: None)]:obb-scale:"
  "--ply-color-mode[If \"rgb\", export colors as red\/green\/blue fields. Otherwise, export colors as
spherical harmonics coefficients. (default\: sh_coeffs)]:ply-color-mode:(sh_coeffs rgb)"
)

_shtab_tyro_ns_export_marching_cubes_options=(
  {-h,--help}"[show this help message and exit]:help:"
  "--load-config[Path to the config YAML file. (required)]:load-config:_files"
  "--output-dir[Path to the output directory. (required)]:output-dir:_files -/"
  "--isosurface-threshold[The isosurface threshold for extraction. For SDF based methods the surface is the zero level set. (default\: 0.0)]:isosurface-threshold:"
  "--resolution[Marching cube resolution. (default\: 1024)]:resolution:"
  "--simplify-mesh[Whether to simplify the mesh. (default\: False)]:simplify-mesh:(True False)"
  "--bounding-box-min[Minimum of the bounding box. (default\: -1.0 -1.0 -1.0)]:bounding-box-min:"
  "--bounding-box-max[Maximum of the bounding box. (default\: 1.0 1.0 1.0)]:bounding-box-max:"
  "--px-per-uv-triangle[Number of pixels per UV triangle. (default\: 4)]:px-per-uv-triangle:"
  "--unwrap-method[The method to use for unwrapping the mesh. (default\: xatlas)]:unwrap-method:(xatlas custom)"
  "--num-pixels-per-side[If using xatlas for unwrapping, the pixels per side of the texture image. (default\: 2048)]:num-pixels-per-side:"
  "--target-num-faces[Target number of faces for the mesh to texture. (default\: 50000)]:target-num-faces:"
)

_shtab_tyro_ns_export_pointcloud_options=(
  {-h,--help}"[show this help message and exit]:help:"
  "--load-config[Path to the config YAML file. (required)]:load-config:_files"
  "--output-dir[Path to the output directory. (required)]:output-dir:_files -/"
  "--num-points[Number of points to generate. May result in less if outlier removal is used. (default\: 1000000)]:num-points:"
  "--remove-outliers[Remove outliers from the point cloud. (default\: True)]:remove-outliers:(True False)"
  "--reorient-normals[Reorient point cloud normals based on view direction. (default\: True)]:reorient-normals:(True False)"
  "--normal-method[Method to estimate normals with. (default\: model_output)]:normal-method:(open3d model_output)"
  "--normal-output-name[Name of the normal output. (default\: normals)]:normal-output-name:"
  "--depth-output-name[Name of the depth output. (default\: depth)]:depth-output-name:"
  "--rgb-output-name[Name of the RGB output. (default\: rgb)]:rgb-output-name:"
  "--obb-center[Center of the oriented bounding box. (default\: None)]:obb-center:"
  "--obb-rotation[Rotation of the oriented bounding box. Expressed as RPY Euler angles in radians (default\: None)]:obb-rotation:"
  "--obb-scale[Scale of the oriented bounding box along each axis. (default\: None)]:obb-scale:"
  "--num-rays-per-batch[Number of rays to evaluate per batch. Decrease if you run out of memory. (default\: 32768)]:num-rays-per-batch:"
  "--std-ratio[Threshold based on STD of the average distances across the point cloud to remove outliers. (default\: 10.0)]:std-ratio:"
  "--save-world-frame[If set, saves the point cloud in the same frame as the original dataset. Otherwise, uses the
scaled and reoriented coordinate space expected by the NeRF models. (default\: False)]:save-world-frame:(True False)"
)

_shtab_tyro_ns_export_poisson_options=(
  {-h,--help}"[show this help message and exit]:help:"
  "--load-config[Path to the config YAML file. (required)]:load-config:_files"
  "--output-dir[Path to the output directory. (required)]:output-dir:_files -/"
  "--num-points[Number of points to generate. May result in less if outlier removal is used. (default\: 1000000)]:num-points:"
  "--remove-outliers[Remove outliers from the point cloud. (default\: True)]:remove-outliers:(True False)"
  "--reorient-normals[Reorient point cloud normals based on view direction. (default\: True)]:reorient-normals:(True False)"
  "--depth-output-name[Name of the depth output. (default\: depth)]:depth-output-name:"
  "--rgb-output-name[Name of the RGB output. (default\: rgb)]:rgb-output-name:"
  "--normal-method[Method to estimate normals with. (default\: model_output)]:normal-method:(open3d model_output)"
  "--normal-output-name[Name of the normal output. (default\: normals)]:normal-output-name:"
  "--save-point-cloud[Whether to save the point cloud. (default\: False)]:save-point-cloud:(True False)"
  "--use-bounding-box[Only query points within the bounding box (default\: True)]:use-bounding-box:(True False)"
  "--bounding-box-min[Minimum of the bounding box, used if use_bounding_box is True. (default\: -1 -1 -1)]:bounding-box-min:"
  "--bounding-box-max[Minimum of the bounding box, used if use_bounding_box is True. (default\: 1 1 1)]:bounding-box-max:"
  "--obb-center[Center of the oriented bounding box. (default\: None)]:obb-center:"
  "--obb-rotation[Rotation of the oriented bounding box. Expressed as RPY Euler angles in radians (default\: None)]:obb-rotation:"
  "--obb-scale[Scale of the oriented bounding box along each axis. (default\: None)]:obb-scale:"
  "--num-rays-per-batch[Number of rays to evaluate per batch. Decrease if you run out of memory. (default\: 32768)]:num-rays-per-batch:"
  "--texture-method[Method to texture the mesh with. Either \'point_cloud\' or \'nerf\'. (default\: nerf)]:texture-method:(point_cloud nerf)"
  "--px-per-uv-triangle[Number of pixels per UV triangle. (default\: 4)]:px-per-uv-triangle:"
  "--unwrap-method[The method to use for unwrapping the mesh. (default\: xatlas)]:unwrap-method:(xatlas custom)"
  "--num-pixels-per-side[If using xatlas for unwrapping, the pixels per side of the texture image. (default\: 2048)]:num-pixels-per-side:"
  "--target-num-faces[Target number of faces for the mesh to texture. (default\: 50000)]:target-num-faces:"
  "--std-ratio[Threshold based on STD of the average distances across the point cloud to remove outliers. (default\: 10.0)]:std-ratio:"
)

_shtab_tyro_ns_export_tsdf_options=(
  {-h,--help}"[show this help message and exit]:help:"
  "--load-config[Path to the config YAML file. (required)]:load-config:_files"
  "--output-dir[Path to the output directory. (required)]:output-dir:_files -/"
  "--downscale-factor[Downscale the images starting from the resolution used for training. (default\: 2)]:downscale-factor:"
  "--depth-output-name[Name of the depth output. (default\: depth)]:depth-output-name:"
  "--rgb-output-name[Name of the RGB output. (default\: rgb)]:rgb-output-name:"
  "--resolution[Resolution of the TSDF volume or \\\[x, y, z\] resolutions individually. (default\: 128 128 128)]:resolution:"
  "--batch-size[How many depth images to integrate per batch. (default\: 10)]:batch-size:"
  "--use-bounding-box[Whether to use a bounding box for the TSDF volume. (default\: True)]:use-bounding-box:(True False)"
  "--bounding-box-min[Minimum of the bounding box, used if use_bounding_box is True. (default\: -1 -1 -1)]:bounding-box-min:"
  "--bounding-box-max[Minimum of the bounding box, used if use_bounding_box is True. (default\: 1 1 1)]:bounding-box-max:"
  "--texture-method[Method to texture the mesh with. Either \'tsdf\' or \'nerf\'. (default\: nerf)]:texture-method:(tsdf nerf)"
  "--px-per-uv-triangle[Number of pixels per UV triangle. (default\: 4)]:px-per-uv-triangle:"
  "--unwrap-method[The method to use for unwrapping the mesh. (default\: xatlas)]:unwrap-method:(xatlas custom)"
  "--num-pixels-per-side[If using xatlas for unwrapping, the pixels per side of the texture image. (default\: 2048)]:num-pixels-per-side:"
  "--target-num-faces[Target number of faces for the mesh to texture. (default\: 50000)]:target-num-faces:"
  "--refine-mesh-using-initial-aabb-estimate[Refine the mesh using the initial AABB estimate. (default\: False)]:refine-mesh-using-initial-aabb-estimate:(True False)"
  "--refinement-epsilon[Refinement epsilon for the mesh. This is the distance in meters that the refined AABB\/OBB will be expanded by
in each direction. (default\: 0.01)]:refinement-epsilon:"
)


_shtab_tyro_ns_export() {
  local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'

  if ((${_shtab_tyro_ns_export_options[(I)${(q)one_or_more}*]} + ${_shtab_tyro_ns_export_options[(I)${(q)remainder}*]} == 0)); then  # noqa: E501
    _shtab_tyro_ns_export_options+=(': :_shtab_tyro_ns_export_commands' '*::: :->ns-export')
  fi
  _arguments -C -s $_shtab_tyro_ns_export_options

  case $state in
    ns-export)
      words=($line[1] "${words[@]}")
      (( CURRENT += 1 ))
      curcontext="${curcontext%:*:*}:_shtab_tyro_ns_export-$line[1]:"
      case $line[1] in
        cameras) _arguments -C -s $_shtab_tyro_ns_export_cameras_options ;;
        gaussian-splat) _arguments -C -s $_shtab_tyro_ns_export_gaussian_splat_options ;;
        marching-cubes) _arguments -C -s $_shtab_tyro_ns_export_marching_cubes_options ;;
        pointcloud) _arguments -C -s $_shtab_tyro_ns_export_pointcloud_options ;;
        poisson) _arguments -C -s $_shtab_tyro_ns_export_poisson_options ;;
        tsdf) _arguments -C -s $_shtab_tyro_ns_export_tsdf_options ;;
      esac
  esac
}



typeset -A opt_args

if [[ $zsh_eval_context[-1] == eval ]]; then
  # eval/source/. command, register function for later
  compdef _shtab_tyro_ns_export -N ns-export
else
  # autoload from fpath, call function directly
  _shtab_tyro_ns_export "$@"
fi

