Alec Jacobson 3151e1db9b lingering fix 1 개월 전
..
copyleft 6e32964a82 Fix CI Build: avoid test on windows, remove Comiso module, specific xcode on github (#2384) 1 년 전
embree 7472691fe6 PlainObject -> MatrixBase (#2425) 1 년 전
mosek a69c8c96f3 Adjust igl::boundary_conditions(...) to support 3D cages (#2229) 2 년 전
opengl cb111f6838 Bump to OpenGL version 4.1 (#2277) 2 년 전
predicates 73a2e0de9b split functions into files; add vectorized orient3d (#2479) 6 달 전
spectra b1bd5b1216 spectra module (#2216) 2 년 전
stb 02e0a1ba83 Separated png module from opengl, added unit test for png (#1693) [ci skip] 2 년 전
triangle 73a2e0de9b split functions into files; add vectorized orient3d (#2479) 6 달 전
AABB.cpp 7472691fe6 PlainObject -> MatrixBase (#2425) 1 년 전
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 년 전
adjacency_list.cpp 68684132e5 adj list fix unref; manifold doc; icosa; tests (#2276) [ci skip] 2 년 전
avg_edge_length.cpp 6a7428694f rm load_mesh 6 년 전
barycentric_interpolation.cpp 1de2627280 tests 5 년 전
bbw.cpp a69c8c96f3 Adjust igl::boundary_conditions(...) to support 3D cages (#2229) 2 년 전
bezier.cpp 4ab389d462 bezier eval and fit cubic bezier splin 5 년 전
blkdiag.cpp 775f2354fa blkdiag function 5 년 전
blue_noise.cpp 62fe771ae1 Fix blue_noise and random_points_on_mesh reproducibility (#2235) 2 년 전
boundary_facets.cpp 81180a6e6a Boundary facets orientation (#2362) 1 년 전
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 년 전
centroid.cpp 8185a213d0 centroid only worked for fixed size input (#2340) 1 년 전
circulation.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
circumradius.cpp b4d8556a6b hybrid mass matrix for tets (#2364) 1 년 전
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 687530283c Fix a bunch of warnings (#2254) 2 년 전
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 37f3b1d821 fix bug in cut_mesh; improve documentation; add test (#2315) 1 년 전
cut_to_disk.cpp 6a7428694f rm load_mesh 6 년 전
decimate.cpp 5d93f800ba fix warnings for Eigen's 'convenience' type `all` (#2421) 1 년 전
delaunay_triangulation.cpp 4ce917d424 Issue 521 (#1327) 5 년 전
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 년 전
ears.cpp b774e1b31c Phase out slice for dense matrices (#2259) 2 년 전
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 년 전
edges_to_path.cpp b774e1b31c Phase out slice for dense matrices (#2259) 2 년 전
euler_characteristic.cpp ab6229c77a Euler Characteristic tests (#2250) 2 년 전
exact_geodesic.cpp 30019acb17 exact_geodesic: fix bugs, clean up asserts, allow 2D (#2046) 3 년 전
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 년 전
icosahedron.cpp 68684132e5 adj list fix unref; manifold doc; icosa; tests (#2276) [ci skip] 2 년 전
increment_ulp.cpp d154f0587c Add test for issue/2270 and a fix (#2271) 2 년 전
internal_angles.cpp 7547801f58 use unit vector atan formula; split intrinsic version (#2285) [ci skip] 2 년 전
intersection_blocking_collapse_edge_callbacks.cpp 112c1b8e48 Dynamic updates to AABB tree; intersection-blocking mesh decimation (#2301) 2 년 전
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 687530283c Fix a bunch of warnings (#2254) 2 년 전
is_symmetric.cpp aa40b908c9 updated gtest to catch 7 년 전
ismember.cpp aa40b908c9 updated gtest to catch 7 년 전
isolines.cpp 75209c5d6c Robust isolines (#2251) 2 년 전
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 년 전
linprog.cpp b319a97447 Fix 1913; initialization bug; dimension bug; templates (#1914) 3 년 전
list_to_matrix.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
lscm.cpp 574ab1a3a8 test needs to be less strict 3 년 전
massmatrix.cpp 514271af51 Implement full type mass matrix (#2193) 2 년 전
min_quad_with_fixed.cpp e2a345a43d Alecjacobson/fix mqwf ldlt (#2239) 2 년 전
moments.cpp 238a607032 moments of mass (#2027) 3 년 전
orient_halfedges.cpp b774e1b31c Phase out slice for dense matrices (#2259) 2 년 전
parallel_for.cpp 3151e1db9b lingering fix 1 개월 전
path_to_edges.cpp 1c3d487d8e rm printing from some tests 3 년 전
path_to_executable.cpp b0fd49d598 CMake refactor (#1805) 3 년 전
pathinfo.cpp aa40b908c9 updated gtest to catch 7 년 전
per_face_normals.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
polygon_corners.cpp 5a68b6e924 polygon corners test 5 년 전
principal_curvature.cpp aaa89ffcbb Fix the order of principal curvature (#1767) 4 년 전
procrustes.cpp a183e28109 Fix scale and reflections in Procrustes solver (#2226) [ci skip] 2 년 전
qslim.cpp 112c1b8e48 Dynamic updates to AABB tree; intersection-blocking mesh decimation (#2301) 2 년 전
quadprog.cpp 2e988bec2e more explicit template args for win 4 년 전
random_points_on_mesh.cpp 62fe771ae1 Fix blue_noise and random_points_on_mesh reproducibility (#2235) 2 년 전
randperm.cpp 62fe771ae1 Fix blue_noise and random_points_on_mesh reproducibility (#2235) 2 년 전
ray_mesh_intersect.cpp 7472691fe6 PlainObject -> MatrixBase (#2425) 1 년 전
readDMAT.cpp 46a8dd2fd4 rm load_matrix 6 년 전
readMESH.cpp 7a3af9c851 Use unique filename for unit tests to avoid filesystem race conditions + update github actions for nightly job. 4 년 전
readMSH.cpp 8d940367bf support rowmajor (#2246) [ci skip] 2 년 전
readOBJ.cpp 1c3d487d8e rm printing from some tests 3 년 전
readOFF.cpp 6a7428694f rm load_mesh 6 년 전
readPLY.cpp 28a811da5d Fixed incorrect reading of per-face data (#1881) 3 년 전
remesh_along_isoline.cpp 3150c23b62 RM load_mesh and use igl::read_triangle_mesh() and test_common::data_path() in test for remesh_along_isoline as per https://github.com/libigl/libigl/pull/1365 5 년 전
repmat.cpp d444bb173f Rework sparse repmat (#1819) 3 년 전
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 년 전
sign.cpp 09e1598e6d Minimal AABB tree + SDFs + Variable Radius Offsets (#2490) 4 달 전
signed_distance.cpp f5702f63e7 Fully avoid conflicting template parameters in AABB/signed_distance (#2257) [ci skip] 2 년 전
slice.cpp 5d93f800ba fix warnings for Eigen's 'convenience' type `all` (#2421) 1 년 전
slice_into.cpp 5d93f800ba fix warnings for Eigen's 'convenience' type `all` (#2421) 1 년 전
slice_mask.cpp 5d93f800ba fix warnings for Eigen's 'convenience' type `all` (#2421) 1 년 전
slice_sorted.cpp 26053f696c Avoid involving Eigen/SparseExtra in slice. (#1370) 5 년 전
sort.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
sparse_voxel_grid.cpp 4d628e75fe sparse_voxel_grid test 5 년 전
split_nonmanifold.cpp 7d1614af1e Fix split_nonmanifold (#2344) 1 년 전
squared_edge_lengths.cpp 6a7428694f rm load_mesh 6 년 전
super_fibonacci.cpp cf9ed7f492 Super Fibonacci and Oriented Bounding Boxes (#2472) [skip ci] 6 달 전
tet_tet_adjacency.cpp 49a74590d4 cleand cmake and added INSTANTIATE_TEST_CASE_P 7 년 전
tri_tri_intersect.cpp 112c1b8e48 Dynamic updates to AABB tree; intersection-blocking mesh decimation (#2301) 2 년 전
triangle_triangle_adjacency.cpp d3052ef4c7 Replace IGL_DEBUG_OFF with a [slow] tag for now. 6 년 전
triangle_triangle_intersect.cpp 89267b4a80 Use box-drawing characters in comments. (#2466) 7 달 전
triangulated_grid.cpp 1c3c7c7b6f ported new tests to catch2 7 년 전
turning_number.cpp e45a7e0868 missing PI on windows ❄️ 2 년 전
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 년 전
voronoi_mass.cpp b4d8556a6b hybrid mass matrix for tets (#2364) 1 년 전
winding_number.cpp 7472691fe6 PlainObject -> MatrixBase (#2425) 1 년 전
writeMSH.cpp 8c95d1044e Added improved .msh reader/writer + tests + example (#1578) 5 년 전
writeOFF.cpp e139702373 writeOFF for quads etc. (#2283) [ci skip] 2 년 전
writePLY.cpp e91fb2b9e0 Fixes a bug in writePLY introduced in dfda6de04ee733a7b00b1edc57051d1fee78b219 (#1867) 3 년 전

readMESH.cpp

#include

#include

#include
#include

TEST_CASE("readMESH: single-tet","[igl]")
{
const std::string filename = "readMESH_single-tet.mesh";
std::ofstream(filename)<< 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(filename,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]")
{
const std::string filename = "readMESH_no-triangles-line.mesh";
std::ofstream(filename)<< 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(filename,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]")
{
const std::string filename = "readMESH_mesh-version-formatted-2.mesh";
std::ofstream(filename)<< 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(filename,V,T,F);
REQUIRE(V.rows() == 4);
REQUIRE(T.rows() == 1);
REQUIRE(T(0,0) == 0);
REQUIRE(F.rows() == 0);

}