Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/geode/inspector/topology/brep_blocks_topology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,7 @@ namespace geode
.string(),
"\n" );
}
if( unique_vertices_linked_to_a_single_and_invalid_surface.nb_issues()
!= 0 )
if( unique_vertices_with_incorrect_block_cmvs_count.nb_issues() != 0 )
{
absl::StrAppend( &message,
unique_vertices_with_incorrect_block_cmvs_count.string(),
Expand Down
35 changes: 27 additions & 8 deletions src/geode/inspector/topology/internal/expected_nb_cmvs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

#include <geode/inspector/topology/internal/expected_nb_cmvs.hpp>

// #include <geode/mesh/core/point_set.hpp>
// #include <geode/mesh/core/solid_mesh.hpp>
// #include <geode/mesh/core/surface_mesh.hpp>
#include <geode/geometry/point.hpp>

#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/model/mixin/core/block.hpp>
#include <geode/model/mixin/core/corner.hpp>
Expand Down Expand Up @@ -107,7 +107,14 @@ namespace
nb_block_cmvs == 1
? std::nullopt
: std::make_optional( absl::StrCat( "unique vertex ",
unique_vertex_id, " is part of Block ",
unique_vertex_id, " at position [",
brep.block( unique_vertex_cmvs.block_cmvs[0]
.component_id.id() )
.mesh()
.point(
unique_vertex_cmvs.block_cmvs[0].vertex )
.string(),
"]", " is part of Block ",
brep.block( block_uuid ).name(), " (",
block_uuid.string(),
") and exactly one Corner and one Line but has ",
Expand All @@ -122,10 +129,16 @@ namespace
nb_block_cmvs == predicted_nb_block_cmvs
? std::nullopt
: std::make_optional( absl::StrCat( "unique vertex ",
unique_vertex_id, " is part of the Block ",
unique_vertex_id, " at position [",
brep.block( unique_vertex_cmvs.block_cmvs[0]
.component_id.id() )
.mesh()
.point( unique_vertex_cmvs.block_cmvs[0].vertex )
.string(),
"]", " is part of Block ",
brep.block( block_uuid ).name(), " (",
block_uuid.string(),
") and of a Corner, and of no internal Line, ",
") and of a Corner, and of no internal Surface, ",
"and of ", nb_boundary_surface_cmvs,
" boundary Surface(s), and of ",
nb_boundary_line_cmvs,
Expand All @@ -141,7 +154,13 @@ namespace
nb_block_cmvs == predicted_nb_block_cmvs
? std::nullopt
: std::make_optional( absl::StrCat( "unique vertex ",
unique_vertex_id, " is part of the Block ",
unique_vertex_id, " at position [",
brep.block( unique_vertex_cmvs.block_cmvs[0]
.component_id.id() )
.mesh()
.point( unique_vertex_cmvs.block_cmvs[0].vertex )
.string(),
"]", " is part of the Block ",
brep.block( block_uuid ).name(), " (",
block_uuid.string(),
") and none of its internal Surfaces but has ",
Expand Down Expand Up @@ -172,7 +191,7 @@ namespace
nb_block_cmvs == predicted_nb_block_cmvs
? std::nullopt
: std::make_optional( absl::StrCat( "unique vertex ",
unique_vertex_id, " is part of the Block ",
unique_vertex_id, " is part of Block ",
brep.block( block_uuid ).name(), " (",
block_uuid.string(), "), has ", nb_internal_surface_cmvs,
" internal Surface(s) mesh vertices (CMVs), "
Expand Down