Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat refactor api #73

Merged
merged 18 commits into from
Nov 3, 2023
Merged

Conversation

francoisbonneau
Copy link
Member

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 25 out of 479. Check the log or trigger a new build to see more.

Copy link
Member

@MelchiorSchuh MelchiorSchuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments, change the StrCat calls like I explained on Slack, and its good for me

include/geode/inspector/information.h Outdated Show resolved Hide resolved
"single line is invalid."
};
ProblemInspectionResult< index_t >
unique_vertices_linked_to_a_line_but_not_linked_to_a_corner{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
unique_vertices_linked_to_a_line_but_not_linked_to_a_corner{
unique_vertices_linked_to_several_lines_but_not_linked_to_a_corner{

include/geode/inspector/topology/brep_lines_topology.h Outdated Show resolved Hide resolved
include/geode/inspector/topology/brep_surfaces_topology.h Outdated Show resolved Hide resolved
include/geode/inspector/topology/section_lines_topology.h Outdated Show resolved Hide resolved
include/geode/inspector/information.h Outdated Show resolved Hide resolved
include/geode/inspector/topology/brep_topology.h Outdated Show resolved Hide resolved
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 25 out of 446. Check the log or trigger a new build to see more.

@@ -37,7 +37,7 @@ namespace geode
using EdgedCurveColocation = EdgedCurveColocation< dimension >;

const auto name =
"EdgedCurveColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "EdgedCurveColocation", dimension, "D" );
pybind11::class_< EdgedCurveColocation >( module, name.c_str() )
.def( pybind11::init< const EdgedCurve& >() )
.def( pybind11::init< const EdgedCurve&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected '(' for function-style cast or type construction [clang-diagnostic-error]

            .def( pybind11::init< const EdgedCurve&, bool >() )
                                                          ^

@@ -37,7 +37,7 @@
using EdgedCurveColocation = EdgedCurveColocation< dimension >;

const auto name =
"EdgedCurveColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "EdgedCurveColocation", dimension, "D" );
pybind11::class_< EdgedCurveColocation >( module, name.c_str() )
.def( pybind11::init< const EdgedCurve& >() )
.def( pybind11::init< const EdgedCurve&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected expression [clang-diagnostic-error]

            .def( pybind11::init< const EdgedCurve&, bool >() )
                                                            ^

@@ -34,7 +34,7 @@ namespace geode
using PointSet = PointSet< dimension >;
using PointSetColocation = PointSetColocation< dimension >;
const auto name =
"PointSetColocation" + std::to_string( dimension ) + "D";
"PointSetColocation" + absl::StrCat( dimension ) + "D";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: no header providing "absl::StrCat" is directly included [misc-include-cleaner]

bindings/python/src/inspector/colocation/pointset_colocation.h:22:

- #include <string>
+ #include <absl/strings/str_cat.h>
+ #include <string>

@@ -34,7 +34,7 @@
using PointSet = PointSet< dimension >;
using PointSetColocation = PointSetColocation< dimension >;
const auto name =
"PointSetColocation" + std::to_string( dimension ) + "D";
"PointSetColocation" + absl::StrCat( dimension ) + "D";
pybind11::class_< PointSetColocation >( module, name.c_str() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

        pybind11::class_< PointSetColocation >( module, name.c_str() )
        ^

@@ -34,7 +34,7 @@
using PointSet = PointSet< dimension >;
using PointSetColocation = PointSetColocation< dimension >;
const auto name =
"PointSetColocation" + std::to_string( dimension ) + "D";
"PointSetColocation" + absl::StrCat( dimension ) + "D";
pybind11::class_< PointSetColocation >( module, name.c_str() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unexpected type name 'PointSetColocation': expected expression [clang-diagnostic-error]

        pybind11::class_< PointSetColocation >( module, name.c_str() )
                          ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unexpected type name 'SurfaceMeshColocation': expected expression [clang-diagnostic-error]

        pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
                          ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh& >() )
                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected expression [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh& >() )
                                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected expression [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                                  ^

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 25 out of 421. Check the log or trigger a new build to see more.

@@ -34,7 +34,7 @@ namespace geode
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected '(' for function-style cast or type construction [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                                                           ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshColocation = SurfaceMeshColocation< dimension >;
const auto name =
"SurfaceMeshColocation" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshColocation", dimension, "D" );
pybind11::class_< SurfaceMeshColocation >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected expression [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                                                             ^

@@ -34,7 +34,7 @@ namespace geode
using EdgedCurve = EdgedCurve< dimension >;
using EdgedCurveDegeneration = EdgedCurveDegeneration< dimension >;
const auto name =
"EdgedCurveDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "EdgedCurveDegeneration", dimension, "D" );
pybind11::class_< EdgedCurveDegeneration >( module, name.c_str() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

        pybind11::class_< EdgedCurveDegeneration >( module, name.c_str() )
        ^

@@ -34,7 +34,7 @@
using EdgedCurve = EdgedCurve< dimension >;
using EdgedCurveDegeneration = EdgedCurveDegeneration< dimension >;
const auto name =
"EdgedCurveDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "EdgedCurveDegeneration", dimension, "D" );
pybind11::class_< EdgedCurveDegeneration >( module, name.c_str() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unexpected type name 'EdgedCurveDegeneration': expected expression [clang-diagnostic-error]

        pybind11::class_< EdgedCurveDegeneration >( module, name.c_str() )
                          ^

@@ -34,7 +34,7 @@
using EdgedCurve = EdgedCurve< dimension >;
using EdgedCurveDegeneration = EdgedCurveDegeneration< dimension >;
const auto name =
"EdgedCurveDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "EdgedCurveDegeneration", dimension, "D" );
pybind11::class_< EdgedCurveDegeneration >( module, name.c_str() )
.def( pybind11::init< const EdgedCurve& >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

            .def( pybind11::init< const EdgedCurve& >() )
                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshDegeneration = SurfaceMeshDegeneration< dimension >;
const auto name =
"SurfaceMeshDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshDegeneration", dimension, +"D" );
pybind11::class_< SurfaceMeshDegeneration >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh& >() )
                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshDegeneration = SurfaceMeshDegeneration< dimension >;
const auto name =
"SurfaceMeshDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshDegeneration", dimension, +"D" );
pybind11::class_< SurfaceMeshDegeneration >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected expression [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh& >() )
                                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshDegeneration = SurfaceMeshDegeneration< dimension >;
const auto name =
"SurfaceMeshDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshDegeneration", dimension, +"D" );
pybind11::class_< SurfaceMeshDegeneration >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use of undeclared identifier 'pybind11' [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshDegeneration = SurfaceMeshDegeneration< dimension >;
const auto name =
"SurfaceMeshDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshDegeneration", dimension, +"D" );
pybind11::class_< SurfaceMeshDegeneration >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected expression [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                                  ^

@@ -34,7 +34,7 @@
using SurfaceMesh = SurfaceMesh< dimension >;
using SurfaceMeshDegeneration = SurfaceMeshDegeneration< dimension >;
const auto name =
"SurfaceMeshDegeneration" + std::to_string( dimension ) + "D";
absl::StrCat( "SurfaceMeshDegeneration", dimension, +"D" );
pybind11::class_< SurfaceMeshDegeneration >( module, name.c_str() )
.def( pybind11::init< const SurfaceMesh& >() )
.def( pybind11::init< const SurfaceMesh&, bool >() )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: expected '(' for function-style cast or type construction [clang-diagnostic-error]

            .def( pybind11::init< const SurfaceMesh&, bool >() )
                                                           ^

@francoisbonneau francoisbonneau merged commit 6766a42 into refactor_all_inspector_api Nov 3, 2023
7 of 18 checks passed
@francoisbonneau francoisbonneau deleted the feat_refactor_api branch November 3, 2023 17:11
@BotellaA
Copy link
Member

🎉 This PR is included in version 5.0.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@BotellaA
Copy link
Member

🎉 This PR is included in version 5.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants