Skip to content

Commit

Permalink
update all tutorials to remove libigl as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chitalu committed Jan 16, 2024
1 parent 5cf36f7 commit fedea39
Show file tree
Hide file tree
Showing 21 changed files with 1,907 additions and 3,614 deletions.
6 changes: 3 additions & 3 deletions source/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,7 @@ void get_connected_component_data_impl_detail(
} break;
case MC_CONNECTED_COMPONENT_DATA_SEAM_VERTEX_SEQUENCE: {
if (cc_uptr->type == MC_CONNECTED_COMPONENT_TYPE_INPUT) {
throw std::invalid_argument("cannot query seam vertices on connected component of type 'input'");
throw std::invalid_argument("cannot query seam vertices on connected component of type 'MC_CONNECTED_COMPONENT_TYPE_INPUT'");
}

const std::shared_ptr<hmesh_t>& cc = cc_uptr->kernel_hmesh_data->mesh;
Expand Down Expand Up @@ -2845,7 +2845,7 @@ void get_connected_component_data_impl_detail(
// and we build (collect all vertices of) its respective sequence by walking to
// the left and right side/neighbours.
// The fact that we walk left and right implies that two dijoint draft sequences
// will be found which will need to be merge later. These disjoint draft sequences
// will be found which will need to be merged later. These disjoint draft sequences
// are stored in "disjoint_vertex_sequences_of_same_seam".

const McUint32 seed_vertex_descr = (McUint32)seed_fiter->first;
Expand Down Expand Up @@ -2929,7 +2929,7 @@ void get_connected_component_data_impl_detail(
}
}

MCUT_ASSERT(untraversed_adj_seam_vertex_count <= 1);
//MCUT_ASSERT(untraversed_adj_seam_vertex_count <= 1);

// no further neighbours to walk/traverse but the stack still has seam vertices to be walked.
// This implies we have an open loop, and that we have finished finding the first disjoint part
Expand Down
2 changes: 1 addition & 1 deletion tutorials/BasicCmdLineApp/BasicCmdLineApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ McUint32 main(McUint32 argc, char* argv[])

McContext context = MC_NULL_HANDLE;

#ifdef NDEBUG
#ifdef NDEBUG
McResult status = mcCreateContext(&context, MC_NULL_HANDLE);
#else
McResult status = mcCreateContext(&context, MC_DEBUG);
Expand Down
18 changes: 8 additions & 10 deletions tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ create_tutorial_target(BasicCmdLineApp)
create_tutorial_target(HelloWorld)
create_tutorial_target(CSGBoolean)
create_tutorial_target(Triangulation)

#
#add_subdirectory(TriangulatedFaceMaps)
#add_subdirectory(EventCallback)
#add_subdirectory(MultipleContextsInParallel)
#add_subdirectory(ReversedConnectedComponentFaces)
#add_subdirectory(PlanarSectioning)
#add_subdirectory(QuerySeamVerticesUnsorted)
#add_subdirectory(QuerySeamVerticesSorted)
#add_subdirectory(InOutQuery)
create_tutorial_target(TriangulatedFaceMaps)
create_tutorial_target(EventCallback)
create_tutorial_target(ReversedConnectedComponentFaces)
create_tutorial_target(QuerySeamVerticesUnsorted)
create_tutorial_target(QuerySeamVerticesSorted)
create_tutorial_target(MultipleContextsInParallel)
create_tutorial_target(PlanarSectioning)
create_tutorial_target(InOutQuery)

#
# TODO
Expand Down
30 changes: 0 additions & 30 deletions tutorials/EventCallback/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit fedea39

Please sign in to comment.