Skip to content

Commit

Permalink
[python] added missing draw_paving binding
Browse files Browse the repository at this point in the history
  • Loading branch information
godardma committed Dec 6, 2024
1 parent 75113ba commit 519b781
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/src/graphics/figures/codac2_py_Figure2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ void export_Figure2D(py::module& m)
VOID_FIGURE2D_DRAW_AUV_CONST_VECTOR_REF_FLOAT_CONST_STYLEPROPERTIES_REF,
"x"_a, "size"_a, "s"_a=StyleProperties())

// Pavings

.def("draw_paving", (void(Figure2D::*)(const PavingOut&,const StyleProperties&,const StyleProperties&))&Figure2D::draw_paving,
VOID_FIGURE2D_DRAW_PAVING_CONST_PAVINGOUT_REF_CONST_STYLEPROPERTIES_REF_CONST_STYLEPROPERTIES_REF,
"p"_a, "boundary_style"_a=StyleProperties::boundary(), "outside_style"_a=StyleProperties::outside())

.def("draw_paving", (void(Figure2D::*)(const PavingInOut&,const StyleProperties&,const StyleProperties&,const StyleProperties&))&Figure2D::draw_paving,
VOID_FIGURE2D_DRAW_PAVING_CONST_PAVINGINOUT_REF_CONST_STYLEPROPERTIES_REF_CONST_STYLEPROPERTIES_REF_CONST_STYLEPROPERTIES_REF,
"p"_a, "boundary_style"_a=StyleProperties::boundary(), "outside_style"_a=StyleProperties::outside(), "inside_style"_a=StyleProperties::inside())

;

py::class_<DefaultView> exported_default_view(m, "DefaultView", DEFAULTVIEW_MAIN);
Expand Down

0 comments on commit 519b781

Please sign in to comment.