ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
GenericTriangle.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
11 
12 #include <GenericTriangle.h>
13 
14 namespace py = pybind11;
15 using namespace pybind11::literals;
16 
17 void define_GenericTriangle(py::module &cccorelib)
18 {
19  py::class_<cloudViewer::GenericTriangle>(cccorelib, "GenericTriangle")
20  .def("_getA", &cloudViewer::GenericTriangle::_getA, py::return_value_policy::reference)
21  .def("_getB", &cloudViewer::GenericTriangle::_getB, py::return_value_policy::reference)
22  .def("_getC", &cloudViewer::GenericTriangle::_getC, py::return_value_policy::reference);
23 }
void define_GenericTriangle(py::module &cccorelib)
virtual const CCVector3 * _getA() const =0
Returns the first vertex (A)
virtual const CCVector3 * _getC() const =0
Returns the third vertex (C)
virtual const CCVector3 * _getB() const =0
Returns the second vertex (B)