// Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once

#include "BindAbstractShape.h"
#include "DocPolygonMesh.h"

// clang-format off

#define OMNIUI_PYBIND_INIT_PolygonMesh                                                                                 \
    OMNIUI_PYBIND_INIT_AbstractShape                                                                                   \
    OMNIUI_PYBIND_INIT_CALL(positions, setPositions, pythonListToVector3)                                              \
    OMNIUI_PYBIND_INIT_CALL(colors, setColors, pythonListToVector4)                                                    \
    OMNIUI_PYBIND_INIT_CAST(vertex_counts, setVertexCounts, std::vector<uint32_t>)                                     \
    OMNIUI_PYBIND_INIT_CAST(vertex_indices, setVertexIndices, std::vector<uint32_t>)                                   \
    OMNIUI_PYBIND_INIT_CAST(thicknesses, setThicknesses, std::vector<float>)                                           \
    OMNIUI_PYBIND_INIT_CAST(intersection_thickness, setIntersectionThickness, float)                                   \
    OMNIUI_PYBIND_INIT_CAST(wireframe, setWireframe, bool)

#define OMNIUI_PYBIND_KWARGS_DOC_PolygonMesh                                                                           \
    "\n    `positions : `\n        "                                                                                   \
    OMNIUI_PYBIND_DOC_PolygonMesh_positions                                                                            \
    "\n    `colors : `\n        "                                                                                      \
    OMNIUI_PYBIND_DOC_PolygonMesh_colors                                                                               \
    "\n    `vertex_counts : `\n        "                                                                               \
    OMNIUI_PYBIND_DOC_PolygonMesh_vertexCounts                                                                         \
    "\n    `vertex_indices : `\n        "                                                                              \
    OMNIUI_PYBIND_DOC_PolygonMesh_vertexIndices                                                                        \
    "\n    `thicknesses : `\n        "                                                                                 \
    OMNIUI_PYBIND_DOC_PolygonMesh_thicknesses                                                                          \
    "\n    `intersection_thickness : `\n        "                                                                      \
    OMNIUI_PYBIND_DOC_PolygonMesh_intersectionThickness                                                                \
    "\n    `wireframe: `\n        "                                                                                    \
    OMNIUI_PYBIND_DOC_PolygonMesh_wireframe                                                                            \
    OMNIUI_PYBIND_KWARGS_DOC_AbstractShape

// clang-format on
