FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/src/tri/_tri_wrapper.cpp at main · spha-code/matplotlib · GitHub
spha-code
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
src
/
tri
/
_tri_wrapper.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
61 lines (57 loc) · 2.95 KB
Breadcrumbs
matplotlib
/
src
/
tri
/
_tri_wrapper.cpp
Copy path
File metadata and controls
61 lines (57 loc) · 2.95 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
include
"
_tri.h
"
using
namespace
pybind11
::literals
;
PYBIND11_MODULE
(_tri, m, py::mod_gil_not_used())
{
py::class_<Triangulation>(m,
"
Triangulation
"
,
py::is_final
())
.
def
(py::init<
const
Triangulation::CoordinateArray&,
const
Triangulation::CoordinateArray&,
const
Triangulation::TriangleArray&,
const
Triangulation::MaskArray&,
const
Triangulation::EdgeArray&,
const
Triangulation::NeighborArray&,
bool
>(),
"
x
"
_a,
"
y
"
_a,
"
triangles
"
_a,
"
mask
"
_a,
"
edges
"
_a,
"
neighbors
"
_a,
"
correct_triangle_orientations
"
_a,
"
Create a new C++ Triangulation object.
\n
"
"
This should not be called directly, use the python class
\n
"
"
matplotlib.tri.Triangulation instead.
\n
"
)
.
def
(
"
calculate_plane_coefficients
"
, &Triangulation::calculate_plane_coefficients,
"
Calculate plane equation coefficients for all unmasked triangles.
"
)
.
def
(
"
get_edges
"
, &Triangulation::get_edges,
"
Return edges array.
"
)
.
def
(
"
get_neighbors
"
, &Triangulation::get_neighbors,
"
Return neighbors array.
"
)
.
def
(
"
set_mask
"
, &Triangulation::set_mask,
"
Set or clear the mask array.
"
);
py::class_<TriContourGenerator>(m,
"
TriContourGenerator
"
,
py::is_final
())
.
def
(py::init<Triangulation&,
const
TriContourGenerator::CoordinateArray&>(),
"
triangulation
"
_a,
"
z
"
_a,
"
Create a new C++ TriContourGenerator object.
\n
"
"
This should not be called directly, use the functions
\n
"
"
matplotlib.axes.tricontour and tricontourf instead.
\n
"
)
.
def
(
"
create_contour
"
, &TriContourGenerator::create_contour,
"
Create and return a non-filled contour.
"
)
.
def
(
"
create_filled_contour
"
, &TriContourGenerator::create_filled_contour,
"
Create and return a filled contour.
"
);
py::class_<TrapezoidMapTriFinder>(m,
"
TrapezoidMapTriFinder
"
,
py::is_final
())
.
def
(py::init<Triangulation&>(),
"
triangulation
"
_a,
"
Create a new C++ TrapezoidMapTriFinder object.
\n
"
"
This should not be called directly, use the python class
\n
"
"
matplotlib.tri.TrapezoidMapTriFinder instead.
\n
"
)
.
def
(
"
find_many
"
, &TrapezoidMapTriFinder::find_many,
"
Find indices of triangles containing the point coordinates (x, y).
"
)
.
def
(
"
get_tree_stats
"
, &TrapezoidMapTriFinder::get_tree_stats,
"
Return statistics about the tree used by the trapezoid map.
"
)
.
def
(
"
initialize
"
, &TrapezoidMapTriFinder::initialize,
"
Initialize this object, creating the trapezoid map from the triangulation.
"
)
.
def
(
"
print_tree
"
, &TrapezoidMapTriFinder::print_tree,
"
Print the search tree as text to stdout; useful for debug purposes.
"
);
}
Back
|
FazBrowse Home
|
New Git URL