ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
ccBox.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
10
#include <
ecvBox.h
>
11
12
#include "../casters.h"
13
14
namespace
py
=
pybind11
;
15
using namespace
pybind11::literals;
16
17
void
define_ccBox
(py::module &m)
18
{
19
py::class_<ccBox, ccGenericPrimitive>(m,
"ccBox"
, R
"doc(
20
ccBox
21
22
Parameters
23
----------
24
insideRadius : cccorelib.CCVector3
25
box dimensions
26
transMat : , optional
27
optional 3D transformation (can be set afterwards with ccDrawableObject::setGLTransformation)
28
name : str, default: Sphere
29
name of the sphere object
30
31
Example
32
-------
33
34
>>> import pycc
35
>>> import cccorelib
36
>>> box = pycc.ccBox(cccorelib.CCVector3(5.0, 10.0, 4.0))
37
)doc")
38
.def(py::init<const CCVector3 &, const ccGLMatrix *, QString>(),
39
"dims"
_a,
40
"transMat"
_a =
nullptr
,
41
"name"
_a = QString(
"Box"
))
42
.def(
"getDimensions"
, &
ccBox::getDimensions
)
43
.def(
"setDimensions"
, &
ccBox::setDimensions
,
"dims"
_a);
44
}
define_ccBox
void define_ccBox(py::module &m)
Definition:
ccBox.cpp:17
ccBox::getDimensions
const CCVector3 & getDimensions() const
Returns box dimensions.
Definition:
ecvBox.h:47
ccBox::setDimensions
void setDimensions(CCVector3 &dims)
Sets box dimensions.
Definition:
ecvBox.h:41
ecvBox.h
pybind11
Definition:
cloudViewer_pybind.h:95
plugins
core
Standard
qPythonRuntime
wrapper
pycc
src
qcc_db
ccBox.cpp
Generated on Wed Jan 28 2026 09:01:08 for ACloudViewer by
1.9.1