Alec Jacobson ad54f2dfe2 int->Index; depreacted pinv; trivial unit test 5 년 전
..
copyleft 3637cf3ca9 missed a colon 6 년 전
embree 59b517a4a4 bump embree version; bump sse2 to avx2 (#1648) 5 년 전
mosek aa40b908c9 updated gtest to catch 7 년 전
predicates 0855c2ef8c Merge branch 'dev' of https://github.com/libigl/libigl into pr 6 년 전
triangle 07e2b01a3c move scaf to triangle folder 5 년 전
MshLoader.cpp 8c95d1044e Added improved .msh reader/writer + tests + example (#1578) 5 년 전
MshSaver.cpp 8c95d1044e Added improved .msh reader/writer + tests + example (#1578) 5 년 전
accumarray.cpp 1deb471727 extra boundary_facets outputs; better sort prototypes; templates; cleanup 7 년 전
avg_edge_length.cpp 6a7428694f rm load_mesh 6 년 전
barycentric_interpolation.cpp 1de2627280 tests 5 년 전
bbw.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
bezier.cpp 4ab389d462 bezier eval and fit cubic bezier splin 5 년 전
blkdiag.cpp 775f2354fa blkdiag function 5 년 전
blue_noise.cpp 43da16bbd0 tighter test 5 년 전
boundary_facets.cpp 1deb471727 extra boundary_facets outputs; better sort prototypes; templates; cleanup 7 년 전
boundary_loop.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
cat.cpp 450935874f Extending igl::cat to work with std::vectors AND Allowing N-gons in writeOBJ (#1108) 6 년 전
circulation.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
cotmatrix.cpp ad54f2dfe2 int->Index; depreacted pinv; trivial unit test 5 년 전
cotmatrix_entries.cpp 6a7428694f rm load_mesh 6 년 전
cotmatrix_intrinsic.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
cr_vector_curvature_correction.cpp 8ea0b8c6dc Added vector Dirichlet and curved Hessian functionality (#1560) 5 년 전
cr_vector_laplacian.cpp 8ea0b8c6dc Added vector Dirichlet and curved Hessian functionality (#1560) 5 년 전
cumprod.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
cumsum.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
curved_hessian_energy.cpp 8ea0b8c6dc Added vector Dirichlet and curved Hessian functionality (#1560) 5 년 전
cut_mesh.cpp f4d14cc7d1 change cut mask 6 년 전
cut_to_disk.cpp 6a7428694f rm load_mesh 6 년 전
decimate.cpp 41454f823d fix decimate bug 5 년 전
delaunay_triangulation.cpp 4ce917d424 Issue 521 (#1327) 6 년 전
dijkstra.cpp 1df0987271 Fix issue with dijkstra algorithm (#1497) 5 년 전
direct_delta_mush.cpp a3c3ef1572 update test too 5 년 전
dirname.cpp aa40b908c9 updated gtest to catch 7 년 전
doublearea.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
edge_exists_near.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
edge_flaps.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
edge_lengths.cpp 6a7428694f rm load_mesh 6 년 전
facet_components.cpp 1aa35de249 passing facet_components unit test 5 년 전
fast_winding_number.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
fit_cubic_bezier.cpp 4ab389d462 bezier eval and fit cubic bezier splin 5 년 전
grad.cpp 607148cf72 Misc compilation fixes for Eigen 3.3 compatibility. 7 년 전
grad_intrinsic.cpp 607148cf72 Misc compilation fixes for Eigen 3.3 compatibility. 7 년 전
grid.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
guess_extension.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
heat_geodesics.cpp f3a201f1e1 Update heat_geodesics.cpp (#1512) 5 년 전
intrinsic_delaunay_cotmatrix.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
intrinsic_delaunay_triangulation.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
is_delaunay.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
is_edge_manifold.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
is_intrinsic_delaunay.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
is_irregular_vertex.cpp 6a7428694f rm load_mesh 6 년 전
is_symmetric.cpp aa40b908c9 updated gtest to catch 7 년 전
ismember.cpp aa40b908c9 updated gtest to catch 7 년 전
iterative_closest_point.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
knn.cpp 21acee15fe making knn and octree work on more types than double, allowing knn to do nearest neighbor searches between two different point clouds (#1313) 5 년 전
list_to_matrix.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
orient_halfedges.cpp 8ea0b8c6dc Added vector Dirichlet and curved Hessian functionality (#1560) 5 년 전
path_to_edges.cpp a03d1a2d56 Path to edges + various template instantiations (#1259) 6 년 전
path_to_executable.cpp 1408bd36b0 fix unit test for path_to_executable() on windows by taking into account that it has a '.exe' suffix. 6 년 전
pathinfo.cpp aa40b908c9 updated gtest to catch 7 년 전
per_face_normals.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
qslim.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
randperm.cpp 843438eab9 Fix logic error for URNG in igl::randperm 7 년 전
readDMAT.cpp 46a8dd2fd4 rm load_matrix 6 년 전
readMESH.cpp 723eb8d74d fix readMESH issues; add test (#1679) 5 년 전
readMSH.cpp 8c95d1044e Added improved .msh reader/writer + tests + example (#1578) 5 년 전
readOBJ.cpp 6a7428694f rm load_mesh 6 년 전
readOFF.cpp 6a7428694f rm load_mesh 6 년 전
readPLY.cpp 52c6f14ca6 Replace .ply reader/writer with tinyply library, supersedes libigl/libigl#1235 5 년 전
rigid_alignment.cpp 88e3dd1e3e iterative closest point alg, tutoiral, test 6 년 전
seam_edges.cpp aa40b908c9 updated gtest to catch 7 년 전
segment_segment_intersect.cpp 16ce83c381 rename test 6 년 전
setdiff.cpp aa40b908c9 updated gtest to catch 7 년 전
signed_distance.cpp 63b3669a87 test update... 5 년 전
slice.cpp aa40b908c9 updated gtest to catch 7 년 전
slice_into.cpp aa40b908c9 updated gtest to catch 7 년 전
slice_sorted.cpp 26053f696c Avoid involving Eigen/SparseExtra in slice. (#1370) 6 년 전
sort.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
squared_edge_lengths.cpp 6a7428694f rm load_mesh 6 년 전
tet_tet_adjacency.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
triangle_triangle_adjacency.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
triangulated_grid.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
unique.cpp aa40b908c9 updated gtest to catch 7 년 전
unique_simplices.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
upsample.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
writeMSH.cpp 8c95d1044e Added improved .msh reader/writer + tests + example (#1578) 5 년 전
writePLY.cpp e6482a8a42 Fixed a bug in writePLY, when face properties were doubled and edge properties were dropped (#1673) 5 년 전

readMESH.cpp

#include

#include

#include
#include

TEST_CASE("readMESH: single-tet","[igl]")
{
std::ofstream("test.mesh")<< R"(MeshVersionFormatted 1
Dimension 3
Vertices
4
0 0 0 0
0 0 1 0
0 1 0 0
1 0 0 0
Triangles
0
Tetrahedra
1
1 2 3 4 0
End
)";

Eigen::MatrixXd V;
Eigen::MatrixXi T,F;
igl::readMESH("test.mesh",V,T,F);
REQUIRE(V.rows() == 4);
REQUIRE(T.rows() == 1);
REQUIRE(T(0,0) == 0);
REQUIRE(F.rows() == 0);

}


TEST_CASE("readMESH: no-triangles-line","[igl]")
{
std::ofstream("test.mesh")<< R"(MeshVersionFormatted 1
Dimension 3
Vertices
4
0 0 0 0
0 0 1 0
0 1 0 0
1 0 0 0
Tetrahedra
1
1 2 3 4 0
)";

Eigen::MatrixXd V;
Eigen::MatrixXi T,F;
igl::readMESH("test.mesh",V,T,F);
REQUIRE(V.rows() == 4);
REQUIRE(T.rows() == 1);
REQUIRE(T(0,0) == 0);
REQUIRE(F.rows() == 0);

}


TEST_CASE("readMESH: mesh-version-formatted-2","[igl]")
{
std::ofstream("test.mesh")<< R"(MeshVersionFormatted 2
Dimension 3
Vertices
4
0 0 0 0
0 0 1 0
0 1 0 0
1 0 0 0
Triangles
0
Tetrahedra
1
1 2 3 4 0
End
)";

Eigen::MatrixXd V;
Eigen::MatrixXi T,F;
igl::readMESH("test.mesh",V,T,F);
REQUIRE(V.rows() == 4);
REQUIRE(T.rows() == 1);
REQUIRE(T(0,0) == 0);
REQUIRE(F.rows() == 0);

}