Skip to content

Commit 1bcf561

Browse files
committed
test
1 parent 57fa54d commit 1bcf561

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

bindings/python/src/inspector/criterion/manifold/brep_meshes_manifold.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
#include <geode/inspector/criterion/manifold/brep_meshes_manifold.hpp>
2727

28+
#include "../../information.hpp"
29+
2830
namespace geode
2931
{
3032
void define_brep_meshes_manifold( pybind11::module& module )
@@ -35,6 +37,9 @@ namespace geode
3537
.def_readwrite(
3638
"component_ids", &BRepNonManifoldEdge::component_ids );
3739

40+
do_define_information< BRepNonManifoldEdge >(
41+
module, "BRepNonManifoldEdge" );
42+
3843
pybind11::class_< BRepMeshesManifoldInspectionResult >(
3944
module, "BRepMeshesManifoldInspectionResult" )
4045
.def( pybind11::init<>() )

bindings/python/src/inspector/information.hpp

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,26 @@
2020
* SOFTWARE.
2121
*
2222
*/
23+
24+
#include <pybind11/pybind11.h>
25+
#include <pybind11/stl.h>
26+
2327
#include <string>
2428

2529
#include <geode/inspector/information.hpp>
2630

31+
namespace pybind11
32+
{
33+
namespace detail
34+
{
35+
template < typename Type, size_t dimension >
36+
struct type_caster< absl::InlinedVector< Type, dimension > >
37+
: list_caster< absl::InlinedVector< Type, dimension >, Type >
38+
{
39+
};
40+
} // namespace detail
41+
} // namespace pybind11
42+
2743
namespace geode
2844
{
2945
template < typename ProblemType >
@@ -62,8 +78,6 @@ namespace geode
6278
do_define_information< std::pair< index_t, index_t > >(
6379
module, "PairIndex" );
6480
do_define_information< uuid >( module, "UUID" );
65-
do_define_information< BRepNonManifoldEdge >(
66-
module, "BRepNonManifoldEdge" );
6781
do_define_information< std::pair< geode::ComponentMeshElement,
6882
geode::ComponentMeshElement > >(
6983
module, "PairComponentMeshElement" );

0 commit comments

Comments
 (0)