ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccDish.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 <ecvDish.h>
13 
14 #include "../casters.h"
15 
16 namespace py = pybind11;
17 using namespace pybind11::literals;
18 
19 void define_ccDish(py::module &m)
20 {
21  py::class_<ccDish, ccGenericPrimitive>(m, "ccDish", R"doc(
22  ccDish
23 
24  Parameters
25  ----------
26  radius : PointCoordinateType
27  base radius
28  height : PointCoordinateType
29  maximum height of dished surface above base
30  radius2 : PointCoordinateType, default = 0
31  If radius2 is zero, dish is drawn as a section of sphere.
32  If radius2 is >0, dish is defined as half of an ellipsoid.
33  transMat : , optional
34  optional 3D transformation (can be set afterwards with ccDrawableObject::setGLTransformation)
35  name : str, default: Sphere
36  name of the sphere object
37 
38  Example
39  -------
40 
41  .. code:: Python
42 
43  dish = pycc.ccDish(1.0, 4.0)
44  )doc")
45  .def(
46  py::init<PointCoordinateType,
49  const ccGLMatrix *,
50  QString,
51  unsigned>(),
52  "radius"_a,
53  "height"_a,
54  "radius2"_a = 0,
55  "transMat"_a = nullptr,
56  "name"_a = QString("Dish"),
57  "precision"_a = []() { return ccDish::DEFAULT_DRAWING_PRECISION; }());
58 }
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
void define_ccDish(py::module &m)
Definition: ccDish.cpp:19
static const unsigned DEFAULT_DRAWING_PRECISION
Default drawing precision.
Definition: ecvDish.h:21
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19