Skip to content

Commit f4efd80

Browse files
authored
Merge pull request #152 from Geode-solutions/feat/stub
Feat/stub
2 parents 2a47fd7 + 493082f commit f4efd80

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@
2020
* SOFTWARE.
2121
*
2222
*/
23+
24+
#pragma once
25+
2326
#include <string>
2427

2528
#include <geode/inspector/information.hpp>
2629

2730
namespace geode
2831
{
2932
template < typename ProblemType >
30-
void do_define_information(
33+
inline void do_define_information(
3134
pybind11::module& module, const std::string& typestr )
3235
{
3336
using InspectionIssues = geode::InspectionIssues< ProblemType >;
@@ -48,7 +51,8 @@ namespace geode
4851
.def( "issues_map", &InspectionIssuesMap::issues_map )
4952
.def( "string", &InspectionIssuesMap::string );
5053
}
51-
void define_information( pybind11::module& module )
54+
55+
inline void define_information( pybind11::module& module )
5256
{
5357
do_define_information< index_t >( module, "Index" );
5458
do_define_information< std::vector< index_t > >(
@@ -62,8 +66,6 @@ namespace geode
6266
do_define_information< std::pair< index_t, index_t > >(
6367
module, "PairIndex" );
6468
do_define_information< uuid >( module, "UUID" );
65-
do_define_information< BRepNonManifoldEdge >(
66-
module, "BRepNonManifoldEdge" );
6769
do_define_information< std::pair< geode::ComponentMeshElement,
6870
geode::ComponentMeshElement > >(
6971
module, "PairComponentMeshElement" );

bindings/python/src/inspector/inspector.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ namespace pybind11
7979
{
8080
};
8181

82+
template < typename Type, size_t dimension >
83+
struct type_caster< absl::InlinedVector< Type, dimension > >
84+
: list_caster< absl::InlinedVector< Type, dimension >, Type >
85+
{
86+
};
8287
} // namespace detail
8388
} // namespace pybind11
8489

0 commit comments

Comments
 (0)